Skip to content

Commit 242f09a

Browse files
committed
Update MutatingScope.php
1 parent dc55cd3 commit 242f09a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/MutatingScope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ public function getScopeNativeType(Expr $expr): Type
918918
private function getNodeKey(Expr $node): string
919919
{
920920
// perf optimize for the most common path
921-
if ($node instanceof Variable) {
921+
if ($node instanceof Variable && !$node->name instanceof Expr) {
922922
return '$' . $node->name;
923923
}
924924

0 commit comments

Comments
 (0)