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); }