1
0
Fork 0

Move '()' outside to account for 'namespacedName'

pull/340/head
Talv 2017-04-02 00:24:36 +02:00
parent 6ab8ab2f4e
commit ee43664541
1 changed files with 1 additions and 1 deletions

View File

@ -446,7 +446,7 @@ class DefinitionResolver
// Cannot get type for dynamic function call // Cannot get type for dynamic function call
return new Types\Mixed; return new Types\Mixed;
} }
$fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name . '()'); $fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name) . '()';
$def = $this->index->getDefinition($fqn, true); $def = $this->index->getDefinition($fqn, true);
if ($def !== null) { if ($def !== null) {
return $def->type; return $def->type;