Skip to content

Commit

Permalink
more complete test
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmstaab authored and staabm committed Apr 28, 2022
1 parent 8381507 commit 90ef458
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/PHPStan/Analyser/data/non-empty-string.php
Expand Up @@ -96,7 +96,9 @@ public function doBar6($s): void
{
if (1 === strlen($s)) {
assertType('literal-string&non-empty-string', $s);
return;
}
assertType('literal-string', $s);
}

/**
Expand All @@ -106,7 +108,9 @@ public function doBar7($s): void
{
if (0 < strlen($s)) {
assertType('literal-string&non-empty-string', $s);
return;
}
assertType('literal-string', $s);
}

public function doFoo3(string $s): void
Expand Down

0 comments on commit 90ef458

Please sign in to comment.