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 84b2cf8 commit 402cc3fCopy full SHA for 402cc3f
src/Analyser/TypeSpecifierContext.php
@@ -27,8 +27,9 @@ private function __construct(private ?int $value)
27
28
private static function create(?int $value): self
29
{
30
- self::$registry[$value] ??= new self($value);
31
- return self::$registry[$value ?? ''];
+ $key = $value ?? '';
+ self::$registry[$key] ??= new self($value);
32
+ return self::$registry[$key];
33
}
34
35
public static function createTrue(): self
0 commit comments