Skip to content

Commit d57d50b

Browse files
committed
more asserts
1 parent 81d7449 commit d57d50b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,10 @@ class Test
1111
protected function create_matrix(int $size): array
1212
{
1313
$size = min(8, $size);
14+
assertType('int<min, 8>', $size);
1415
$matrix = [];
1516
for ($i = 0; $i < $size; $i++) {
17+
assertType('int<0, 7>', $i);
1618
$matrix[] = array_fill(0, $size, 0);
1719
}
1820

0 commit comments

Comments
 (0)