1
0
Fork 0

Avoid multiple references with function calls

pull/220/head
Felix Becker 2016-12-16 23:31:53 +01:00
parent d03db024c1
commit 69a6ef0307
1 changed files with 2 additions and 2 deletions

View File

@ -284,12 +284,12 @@ class DefinitionResolver
}
}
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) {
return null;
}
$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);
} else if (
$node instanceof Node\Expr\ClassConstFetch