1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00
This commit is contained in:
Daniil Gentili 2023-12-01 16:31:01 +01:00
parent ab3a17b7b0
commit 1a4656564a

View File

@ -287,12 +287,12 @@ class TypeAlgebraTest extends TestCase
$arr = [];
foreach ([0, 1, 2, 3] as $i) {
$a = rand(0, 1) ? 5 : "010";
$a = (int) (rand(0, 1) ? 5 : "010");
if (!isset($arr[(int) $a])) {
$arr[(int) $a] = 5;
if (!isset($arr[$a])) {
$arr[$a] = 5;
} else {
$arr[(int) $a] += 4;
$arr[$a] += 4;
}
}',
],