1
0
Fork 0

Avoid multiple references with function calls (#220)

pull/221/head
Felix Becker 2016-12-16 23:42:47 +01:00 committed by GitHub
parent 2242a35678
commit 83618fee2e
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