Skip to content

Commit ac45a36

Browse files
staabmondrejmirtes
authored andcommitted
fix PHP7 build
1 parent 2605484 commit ac45a36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/PHPStan/Analyser/nsrt/array-combine-php7.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ function withBoolKey(): void
3333
$c = [false, 'red', 'yellow'];
3434
$d = ['avocado', 'apple', 'banana'];
3535

36-
assertType("array{: 'avocado', red: 'apple', yellow: 'banana'}", array_combine($c, $d));
36+
assertType("array{'': 'avocado', red: 'apple', yellow: 'banana'}", array_combine($c, $d));
3737
}
3838

3939
function withFloatKey(): void
4040
{
4141
$a = [1.5, 'red', 'yellow'];
4242
$b = ['avocado', 'apple', 'banana'];
4343

44-
assertType("array{1.5: 'avocado', red: 'apple', yellow: 'banana'}", array_combine($a, $b));
44+
assertType("array{'1.5': 'avocado', red: 'apple', yellow: 'banana'}", array_combine($a, $b));
4545
}
4646

4747
function withIntegerKey(): void

0 commit comments

Comments
 (0)