Skip to content

Commit 6ae63c8

Browse files
committed
fix
1 parent cdaf2f1 commit 6ae63c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Constant/ConstantArrayType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -723,7 +723,7 @@ public function setOffsetValueType(?Type $offsetType, Type $valueType, bool $uni
723723
// turn into tagged union for more precise results
724724
if (
725725
count($scalarKeyTypes) >= 2
726-
&& count($scalarKeyTypes) <= ConstantArrayTypeBuilder::ARRAY_COUNT_LIMIT
726+
&& count($scalarKeyTypes) < ConstantArrayTypeBuilder::ARRAY_COUNT_LIMIT
727727
) {
728728
$hasNewKey = false;
729729
foreach ($scalarKeyTypes as $scalarKeyType) {

0 commit comments

Comments
 (0)