Fix for #286
parent
b1cc7bf6b0
commit
af900372b3
|
@ -448,7 +448,13 @@ class DefinitionResolver
|
|||
}
|
||||
$fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name) . '()';
|
||||
$def = $this->index->getDefinition($fqn, true);
|
||||
if (strtolower((string)$def) === 'null') {
|
||||
return new Types\Null_;
|
||||
}
|
||||
if ($def !== null) {
|
||||
if ( null === $def->type ) {
|
||||
return new Types\Mixed;
|
||||
}
|
||||
return $def->type;
|
||||
}
|
||||
}
|
||||
|
@ -463,6 +469,9 @@ class DefinitionResolver
|
|||
$fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name);
|
||||
$def = $this->index->getDefinition($fqn, true);
|
||||
if ($def !== null) {
|
||||
if ( null === $def->type ) {
|
||||
return new Types\Mixed;
|
||||
}
|
||||
return $def->type;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue