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 546660f commit c79d3d2Copy full SHA for c79d3d2
src/DefinitionResolver.php
@@ -441,7 +441,7 @@ public function resolveExpressionNodeToType(Node\Expr $expr): Type
441
}
442
$fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name);
443
$def = $this->index->getDefinition($fqn, true);
444
- if ($def !== null) {
+ if ($def !== null && $def->type!= null) {
445
return $def->type;
446
447
0 commit comments