Skip to content

Commit f47056b

Browse files
committed
improve naming
1 parent f40c14a commit f47056b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ private function processStmtNode(
12501250
$exprType = $scope->getType($stmt->expr);
12511251
$isIterableAtLeastOnce = $exprType->isIterableAtLeastOnce();
12521252
if ($exprType->isIterable()->no() || $isIterableAtLeastOnce->maybe()) {
1253-
$foreachType = $this->getForeachType();
1253+
$foreachType = $this->getForeachIterateeType();
12541254
if (
12551255
!$foreachType->isSuperTypeOf($exprType)->yes()
12561256
&& $finalScope->getType($stmt->expr)->equals($foreachType)
@@ -6320,7 +6320,7 @@ private function processVarAnnotation(MutatingScope $scope, array $variableNames
63206320
return $scope;
63216321
}
63226322

6323-
private function getForeachType(): Type
6323+
private function getForeachIterateeType(): Type
63246324
{
63256325
return TypeCombinator::union(
63266326
new ArrayType(new MixedType(), new MixedType()),
@@ -6335,7 +6335,7 @@ private function enterForeach(MutatingScope $scope, MutatingScope $originalScope
63356335
}
63366336

63376337
// narrow the iteratee type to those supported by foreach
6338-
$foreachType = $this->getForeachType();
6338+
$foreachType = $this->getForeachIterateeType();
63396339
$scope = $scope->specifyExpressionType(
63406340
$stmt->expr,
63416341
TypeCombinator::intersect(

0 commit comments

Comments
 (0)