Skip to content

Commit e3a1019

Browse files
committed
add assert
1 parent 15a99db commit e3a1019

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/PHPStan/Analyser/nsrt/bug-13674.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function sayHello($arrayA, $listA, int $i): void
2828
assertType('list<int>', $listA);
2929

3030
if (!isset($listA[$i])) {
31+
assertType('list<int>', $listA);
3132
return;
3233
}
3334
assertType('non-empty-list<int>', $listA);

0 commit comments

Comments
 (0)