We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d0a0a2 commit 14a6d65Copy full SHA for 14a6d65
src/DefinitionResolver.php
@@ -446,7 +446,7 @@ public function resolveExpressionNodeToType(Node\Expr $expr): Type
446
// Cannot get type for dynamic function call
447
return new Types\Mixed;
448
}
449
- $fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name);
+ $fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name) . '()';
450
$def = $this->index->getDefinition($fqn, true);
451
if ($def !== null) {
452
return $def->type;
0 commit comments