mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Fixup tests
This commit is contained in:
parent
f652cf09d8
commit
ead2908464
@ -1027,9 +1027,7 @@ class ForeachTest extends TestCase
|
|||||||
$arr = [];
|
$arr = [];
|
||||||
|
|
||||||
foreach ([1, 2, 3] as $i) {
|
foreach ([1, 2, 3] as $i) {
|
||||||
if (!isset($arr[$i]["a"])) {
|
$arr[$i]["a"] ??= 0;
|
||||||
$arr[$i]["a"] = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
$arr[$i]["a"] += 5;
|
$arr[$i]["a"] += 5;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user