Skip to content

Commit 5bd64f4

Browse files
committed
Fix
1 parent 3639e4f commit 5bd64f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3216,7 +3216,7 @@ private function getArraySortDoNotPreserveListFunctionType(Type $type): Type
32163216
$constantArray->getValueTypes(),
32173217
$constantArray->getNextAutoIndexes(),
32183218
$constantArray->getOptionalKeys(),
3219-
TrinaryLogic::createMaybe(),
3219+
$constantArray->isList()->and(TrinaryLogic::createMaybe()),
32203220
);
32213221
}
32223222

0 commit comments

Comments
 (0)