Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/Analyser/TypeSpecifierContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ private function __construct(private ?int $value)

private static function create(?int $value): self
{
self::$registry[$value] ??= new self($value);
return self::$registry[$value ?? ''];
$key = $value ?? '';
self::$registry[$key] ??= new self($value);
return self::$registry[$key];
}

public static function createTrue(): self
Expand Down
Loading