1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Fixup tests

This commit is contained in:
Daniil Gentili 2023-12-01 17:05:23 +01:00
parent f652cf09d8
commit ead2908464

View File

@ -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;
} }