Skip to content

Commit e151f73

Browse files
phpstan-botclaude
andcommitted
Rename $tooComplex to $tooManyHasOffsetValueTypes for clarity
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 879291b commit e151f73

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Analyser/MutatingScope.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2691,7 +2691,7 @@ public function specifyExpressionType(Expr $expr, Type $type, Type $nativeType,
26912691
$exprVarType = $scope->getType($expr->var);
26922692
$isArray = $exprVarType->isArray();
26932693
if (!$exprVarType instanceof MixedType && !$isArray->no()) {
2694-
$tooComplex = false;
2694+
$tooManyHasOffsetValueTypes = false;
26952695

26962696
$varType = $exprVarType;
26972697
if (!$isArray->yes()) {
@@ -2712,7 +2712,7 @@ public function specifyExpressionType(Expr $expr, Type $type, Type $nativeType,
27122712
$hasOffsetAccessoryCount++;
27132713

27142714
if ($hasOffsetAccessoryCount > self::ARRAY_DIM_FETCH_UNION_HAS_OFFSET_VALUE_TYPE_LIMIT) {
2715-
$tooComplex = true;
2715+
$tooManyHasOffsetValueTypes = true;
27162716
break 2;
27172717
}
27182718
}
@@ -2721,7 +2721,7 @@ public function specifyExpressionType(Expr $expr, Type $type, Type $nativeType,
27212721
}
27222722

27232723
if (
2724-
!$tooComplex
2724+
!$tooManyHasOffsetValueTypes
27252725
&& ($dimType instanceof ConstantIntegerType || $dimType instanceof ConstantStringType)
27262726
) {
27272727
$varType = TypeCombinator::intersect(

0 commit comments

Comments
 (0)