We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c15ff40 commit 546c5f0Copy full SHA for 546c5f0
src/Analyser/MutatingScope.php
@@ -918,7 +918,7 @@ public function getScopeNativeType(Expr $expr): Type
918
private function getNodeKey(Expr $node): string
919
{
920
// perf optimize for the most common path
921
- if ($node instanceof Variable) {
+ if ($node instanceof Variable && !$node->name instanceof Expr) {
922
return '$' . $node->name;
923
}
924
0 commit comments