Skip to content

Commit 3a0aa45

Browse files
committed
Remove variable variable assign re-processing, PHPStan walks the dynamic variable name itself
Amp-Thread-ID: https://ampcode.com/threads/T-01a179f2-995f-7745-8d8c-4c174ba5c0ce
1 parent c7e928e commit 3a0aa45

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

‎src/NodeTypeResolver/PHPStan/Scope/PHPStanNodeScopeResolver.php‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
use PhpParser\Node\Expr\Throw_;
4242
use PhpParser\Node\Expr\UnaryMinus;
4343
use PhpParser\Node\Expr\UnaryPlus;
44-
use PhpParser\Node\Expr\Variable;
4544
use PhpParser\Node\Expr\Yield_;
4645
use PhpParser\Node\Expr\YieldFrom;
4746
use PhpParser\Node\Identifier;
@@ -216,14 +215,6 @@ private function fillScope(array $stmts, MutatingScope $scope): void
216215
if ($node instanceof Assign || $node instanceof AssignOp || $node instanceof AssignRef) {
217216
$this->processAssign($node, $mutatingScope);
218217

219-
if ($node->var instanceof Variable && $node->var->name instanceof Expr) {
220-
$this->nodeScopeResolverProcessNodes(
221-
[new Expression($node->var), new Expression($node->expr)],
222-
$mutatingScope,
223-
$nodeCallback
224-
);
225-
}
226-
227218
return;
228219
}
229220

0 commit comments

Comments
 (0)