Skip to content

Commit 0827530

Browse files
staabmondrejmirtes
authored andcommitted
Update array-combine-php8.php
1 parent 9562f73 commit 0827530

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ function withUnionConstArraysDifferentArraysCount(): void
116116
function withUnionConstArraysAndDifferentFiniteKeysCount(bool $bool): void
117117
{
118118
if (rand(0, 1)) {
119-
$a = [$bool];
119+
$a = [$bool]; // translates to [true, false]
120120
$b = ['avocado'];
121121
} else {
122-
$a = ["2", $bool];
122+
$a = ["2", $bool]; // translates to ["2", true, false]
123123
$b = ['apple', 'banana'];
124124
}
125125

0 commit comments

Comments
 (0)