Skip to content

Commit 1a46565

Browse files
committed
Cleanup
1 parent ab3a17b commit 1a46565

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/TypeReconciliation/TypeAlgebraTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,12 +287,12 @@ function foo(array $arr): void {
287287
$arr = [];
288288
289289
foreach ([0, 1, 2, 3] as $i) {
290-
$a = rand(0, 1) ? 5 : "010";
290+
$a = (int) (rand(0, 1) ? 5 : "010");
291291
292-
if (!isset($arr[(int) $a])) {
293-
$arr[(int) $a] = 5;
292+
if (!isset($arr[$a])) {
293+
$arr[$a] = 5;
294294
} else {
295-
$arr[(int) $a] += 4;
295+
$arr[$a] += 4;
296296
}
297297
}',
298298
],

0 commit comments

Comments
 (0)