Skip to content

Commit e75772d

Browse files
committed
Update bug-12163.php
1 parent bd09833 commit e75772d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,11 @@ public function integerRangeGrowsBothDirections(int $size, int $index): void
8080
for ($i = 0; $i < $size; $i++) {
8181
assertType('int<3, 12>', $index);
8282
if ($index > 7) {
83-
/** @var int<3, 4> $index */
83+
$index = rand(3, 4);
8484
} else {
8585
$index = $index + 5;
8686
}
8787
}
88+
assertType('int<3, 12>', $index);
8889
}
8990
}

0 commit comments

Comments
 (0)