1
0
Fork 0

Fix missing '()' for function definition (#340)

pull/320/head^2 v4.3.4
Talv 2017-04-02 00:30:10 +02:00 committed by Felix Becker
parent 4d0a0a2a10
commit 14a6d65832
1 changed files with 1 additions and 1 deletions

View File

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