From d6fc9769745ef0e0cbea8a83b811444c01d45d0b Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sun, 9 Aug 2026 09:32:42 +0200 Subject: [PATCH] Removed duplicate code --- src/Analyser/MutatingScope.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Analyser/MutatingScope.php b/src/Analyser/MutatingScope.php index 59626e60ab..eab0c85e88 100644 --- a/src/Analyser/MutatingScope.php +++ b/src/Analyser/MutatingScope.php @@ -1010,11 +1010,6 @@ public function getScopeNativeType(Expr $expr): Type public function getNodeKey(Expr $node): string { - // perf optimize for the most common path - if ($node instanceof Variable && !$node->name instanceof Expr) { - return '$' . $node->name; - } - return ScopeOps::nodeKey($node, $this->exprPrinter); }