Skip to content

Commit 6e895ea

Browse files
committed
comment
1 parent 3aff452 commit 6e895ea

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/PHPStan/Analyser/nsrt/array-merge-const-non-const.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function doFooBar(array $array): void {
2626
}
2727

2828
function doFooInts(array $array): void {
29+
// int keys will be renumbered therefore we can't reason about them in case we don't know all arrays involved
2930
assertType(
3031
"non-empty-array&hasOffsetValue('a', 1)&hasOffsetValue('c', 'e')",
3132
array_merge([1 => 'd'], $array, ['a' => 1, 3 => false, 'c' => 'e'])

0 commit comments

Comments
 (0)