Skip to content

Commit 14a6d65

Browse files
Talvfelixfbecker
authored andcommitted
Fix missing '()' for function definition (#340)
1 parent 4d0a0a2 commit 14a6d65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DefinitionResolver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ public function resolveExpressionNodeToType(Node\Expr $expr): Type
446446
// Cannot get type for dynamic function call
447447
return new Types\Mixed;
448448
}
449-
$fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name);
449+
$fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name) . '()';
450450
$def = $this->index->getDefinition($fqn, true);
451451
if ($def !== null) {
452452
return $def->type;

0 commit comments

Comments
 (0)