Skip to content

Commit 831aa92

Browse files
committed
fix
1 parent 333aa6e commit 831aa92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎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)