We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e88651 commit 88f62f6Copy full SHA for 88f62f6
tests/PHPStan/Analyser/nsrt/narrow-cast.php
@@ -7,9 +7,9 @@
7
/** @param array<mixed> $arr */
8
function doFoo(string $x, array $arr): void {
9
if ((bool) strlen($x)) {
10
- assertType('non-empty-string', $x);
+ assertType('string', $x); // could be non-empty-string
11
} else {
12
- assertType("''", $x);
+ assertType('string', $x);
13
}
14
assertType('string', $x);
15
0 commit comments