Skip to content

Commit 84ace80

Browse files
committed
Update MutatingScope.php
1 parent 662976c commit 84ace80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Analyser/MutatingScope.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5300,13 +5300,13 @@ private function generalizeVariableTypeHolders(
53005300
{
53015301
uksort($variableTypeHolders, static fn (string $exprA, string $exprB): int => strlen($exprA) <=> strlen($exprB));
53025302

5303-
$changedArrays = [];
5303+
$generalizedExpressions = [];
53045304
foreach ($variableTypeHolders as $variableExprString => $variableTypeHolder) {
53055305
if (!isset($otherVariableTypeHolders[$variableExprString])) {
53065306
continue;
53075307
}
53085308

5309-
foreach ($changedArrays as $changedExpr) {
5309+
foreach ($generalizedExpressions as $changedExpr) {
53105310
if (
53115311
str_contains($variableExprString, $changedExpr . '[')
53125312
|| str_contains($variableExprString, '[' . $changedExpr . ']')
@@ -5320,7 +5320,7 @@ private function generalizeVariableTypeHolders(
53205320
if (
53215321
!$generalizedType->equals($variableTypeHolder->getType())
53225322
) {
5323-
$changedArrays[] = $variableExprString;
5323+
$generalizedExpressions[] = $variableExprString;
53245324
}
53255325
$variableTypeHolders[$variableExprString] = new ExpressionTypeHolder(
53265326
$variableTypeHolder->getExpr(),

0 commit comments

Comments
 (0)