Skip to content

Commit d08d0c2

Browse files
committed
Array destructuring value should not be processed twice
1 parent 7965f97 commit d08d0c2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Analyser/NodeScopeResolver.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6198,12 +6198,6 @@ static function (): void {
61986198
$itemScope = $keyResult->getScope();
61996199
}
62006200

6201-
$valueResult = $this->processExprNode($stmt, $arrayItem->value, $itemScope, $nodeCallback, $context->enterDeep());
6202-
$hasYield = $hasYield || $valueResult->hasYield();
6203-
$throwPoints = array_merge($throwPoints, $valueResult->getThrowPoints());
6204-
$impurePoints = array_merge($impurePoints, $valueResult->getImpurePoints());
6205-
$isAlwaysTerminating = $isAlwaysTerminating || $valueResult->isAlwaysTerminating();
6206-
62076201
if ($arrayItem->key === null) {
62086202
$dimExpr = new Node\Scalar\Int_($i);
62096203
} else {

0 commit comments

Comments
 (0)