Skip to content

Commit 101f110

Browse files
committed
Update ConstantArrayType.php
1 parent d07cfbc commit 101f110

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
@@ -706,7 +706,7 @@ public function setOffsetValueType(?Type $offsetType, Type $valueType, bool $uni
706706
if (
707707
$scalarKeyTypes !== null
708708
&& count($scalarKeyTypes) >= 2
709-
&& count($scalarKeyTypes) <= ConstantArrayTypeBuilder::ARRAY_COUNT_LIMIT
709+
&& count($scalarKeyTypes) <= InitializerExprTypeResolver::CALCULATE_SCALARS_LIMIT
710710
) {
711711
$hasNewKey = false;
712712
foreach ($scalarKeyTypes as $scalarKeyType) {

0 commit comments

Comments
 (0)