1
0
Fork 0

fix: Move the leftovet bit outside

pull/679/head
Martin Letáček 2018-12-22 23:26:11 +01:00
parent 637f2bc741
commit cc4a63fc58
1 changed files with 3 additions and 3 deletions

View File

@ -507,11 +507,11 @@ class DefinitionResolver
} else {
$nameSuffix = '::' . $scoped->memberName->getText($scoped->getFileContents());
}
if ($scoped->parent instanceof Node\Expression\CallExpression) {
$nameSuffix .= '()';
}
do {
$name = (string)$className . $nameSuffix;
if ($scoped->parent instanceof Node\Expression\CallExpression) {
$name .= '()';
}
if ($origName === null) {
$origName = $name;
}