We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dadf55 commit 058dc67Copy full SHA for 058dc67
1 file changed
tests/PHPStan/Analyser/nsrt/bug-13674.php
@@ -26,5 +26,10 @@ public function sayHello($arrayA, $listA, int $i): void
26
assertType('list<int>', $listA);
27
}
28
29
+
30
+ if (!isset($listA[$i])) {
31
+ return;
32
+ }
33
+ assertType('non-empty-list<int>', $listA);
34
35
0 commit comments