Skip to content

Commit d3baf76

Browse files
committed
Assert type in tests
1 parent 3b9d6b2 commit d3baf76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/PHPStan/Analyser/nsrt/for-loop-expr.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ function skipFirstElement(array $items): void
5959
for ($i = 1; count($items) > $i; ++$i) {
6060
$items[$i] = 'hello';
6161
}
62+
63+
assertType('array<string>', $items);
6264
}
6365

6466
/**
@@ -70,4 +72,6 @@ function skipByX(int $skip, array $items): void
7072
for ($i = $skip; count($items) > $i; ++$i) {
7173
$items[$i] = 'hello';
7274
}
75+
76+
assertType('array<string>', $items);
7377
}

0 commit comments

Comments
 (0)