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 b90ede7 commit 5100d89Copy full SHA for 5100d89
src/DefinitionResolver.php
@@ -448,6 +448,9 @@ public function resolveExpressionNodeToType(Node\Expr $expr): Type
448
if (strtolower((string)$expr->name) === 'true' || strtolower((string)$expr->name) === 'false') {
449
return new Types\Boolean;
450
}
451
+ if (strtolower((string)$expr->name) === 'null') {
452
+ return new Types\Null_;
453
+ }
454
// Resolve constant
455
$fqn = (string)($expr->getAttribute('namespacedName') ?? $expr->name);
456
$def = $this->index->getDefinition($fqn, true);
0 commit comments