Skip to content

Commit 8778a00

Browse files
committed
Update bug-13857.php
1 parent 14b9a08 commit 8778a00

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@
1111
*/
1212
function test(array $array, int $id): void {
1313
$array[$id]['state'] = 'foo';
14+
// only one element was set to 'foo', not all of them.
1415
assertType("non-empty-array<int, array{state: string}>", $array);
1516
}

0 commit comments

Comments
 (0)