We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14b9a08 commit 8778a00Copy full SHA for 8778a00
1 file changed
tests/PHPStan/Analyser/nsrt/bug-13857.php
@@ -11,5 +11,6 @@
11
*/
12
function test(array $array, int $id): void {
13
$array[$id]['state'] = 'foo';
14
+ // only one element was set to 'foo', not all of them.
15
assertType("non-empty-array<int, array{state: string}>", $array);
16
}
0 commit comments