Skip to content

Commit ab3a17b

Browse files
committed
Fix
1 parent 2e249ab commit ab3a17b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/ArrayAssignmentTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class B {}
213213
'assertions' => [
214214
'$foo' => 'array{0: string, 1: string, 2: string}',
215215
'$bar' => 'list{int, int, int}',
216-
'$bat' => 'non-empty-array<string, int>',
216+
'$bat' => 'array{a: int, b: int, c: int}',
217217
],
218218
],
219219
'implicitStringArrayCreation' => [
@@ -1000,6 +1000,7 @@ function updateArray(array $arr) : array {
10001000
$a = [];
10011001
10021002
foreach (["one", "two", "three"] as $key) {
1003+
$a[$key] ??= 0;
10031004
$a[$key] += rand(0, 10);
10041005
}
10051006

0 commit comments

Comments
 (0)