Skip to content

Commit

Permalink
add test to ensure https://psalm.dev/r/323e33ae8a will be a non-falsy…
Browse files Browse the repository at this point in the history
…-string
  • Loading branch information
kkmuffme committed Jan 13, 2024
1 parent b3857ab commit 971a168
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/BinaryOperationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,15 @@ public function providerValidCodeParse(): iterable
'code' => '<?php
$a = "Hey " . "Jude,";',
],
'concatenationNonFalsyLiteralStringWithString' => [
'code' => '<?php
function foo(): string {}
$a = "Hey " . foo();',
'assertions' => [
'$a===' => 'non-falsy-string',
],
'ignored_issues' => ['InvalidReturnType'],
],
'concatenationWithNumberInWeakMode' => [
'code' => '<?php
$a = "hi" . 5;',
Expand Down

0 comments on commit 971a168

Please sign in to comment.