Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 23ec354

Browse files
committed
Remove TypeSpecifierContext caching
1 parent 88f62f6 commit 23ec354

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎src/Analyser/TypeSpecifierContext.php‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ final class TypeSpecifierContext
1919
public const CONTEXT_FALSEY = self::CONTEXT_FALSE | self::CONTEXT_FALSEY_BUT_NOT_FALSE;
2020
public const CONTEXT_BITMASK = 0b1111;
2121

22-
/** @var self[] */
23-
private static array $registry;
24-
2522
private ?Type $returnType = null;
2623

2724
private function __construct(private ?int $value)
@@ -30,8 +27,7 @@ private function __construct(private ?int $value)
3027

3128
private static function create(?int $value): self
3229
{
33-
self::$registry[$value] ??= new self($value);
34-
return self::$registry[$value];
30+
return new self($value);
3531
}
3632

3733
public static function createTrue(): self

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /