Skip to content

Commit fcec2e3

Browse files
committed
Update MutatingScope.php
1 parent d5aaa3f commit fcec2e3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Analyser/MutatingScope.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2718,7 +2718,10 @@ public function specifyExpressionType(Expr $expr, Type $type, Type $nativeType,
27182718
}
27192719
}
27202720
}
2721-
if (!$tooComplex && ($dimType instanceof ConstantIntegerType || $dimType instanceof ConstantStringType)) {
2721+
if (
2722+
!$tooComplex
2723+
&& ($dimType instanceof ConstantIntegerType || $dimType instanceof ConstantStringType)
2724+
) {
27222725
$varType = TypeCombinator::intersect(
27232726
$varType,
27242727
new HasOffsetValueType($dimType, $type),

0 commit comments

Comments
 (0)