Skip to content

Commit f8275b7

Browse files
committed
Update bug-12163.php
1 parent 8ac04f0 commit f8275b7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function iterateRowColumnIndicesDecrementing(int $rows, int $columns): vo
3636
$rowIndex = 0;
3737
$columnIndex = 0;
3838
for ($i = 0; $i < $size; $i++) {
39-
assertType('0', $rowIndex);
39+
assertType('0', $rowIndex); // `0`, because the IF in line 41 is always TRUE
4040
assertType('int<min, 0>', $columnIndex);
4141
if ($columnIndex < $columns) {
4242
$columnIndex--;

0 commit comments

Comments
 (0)