Avoid multiple references with function calls (#220)
parent
2242a35678
commit
83618fee2e
|
@ -284,12 +284,12 @@ class DefinitionResolver
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $classFqn . $memberSuffix;
|
return $classFqn . $memberSuffix;
|
||||||
} else if ($parent instanceof Node\Expr\FuncCall) {
|
} else if ($parent instanceof Node\Expr\FuncCall && $node instanceof Node\Name) {
|
||||||
if ($parent->name instanceof Node\Expr) {
|
if ($parent->name instanceof Node\Expr) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
$name = (string)($node->getAttribute('namespacedName') ?? $parent->name);
|
$name = (string)($node->getAttribute('namespacedName') ?? $parent->name);
|
||||||
} else if ($parent instanceof Node\Expr\ConstFetch) {
|
} else if ($parent instanceof Node\Expr\ConstFetch && $node instanceof Node\Name) {
|
||||||
$name = (string)($node->getAttribute('namespacedName') ?? $parent->name);
|
$name = (string)($node->getAttribute('namespacedName') ?? $parent->name);
|
||||||
} else if (
|
} else if (
|
||||||
$node instanceof Node\Expr\ClassConstFetch
|
$node instanceof Node\Expr\ClassConstFetch
|
||||||
|
|
Loading…
Reference in New Issue