Skip to content

Commit

Permalink
fix psalm
Browse files Browse the repository at this point in the history
  • Loading branch information
Gummibeer committed May 10, 2021
1 parent 39d2eb7 commit c14dc46
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,10 @@ abstract class Enum implements JsonSerializable
/** @psalm-readonly */
protected string $label;

/** @psalm-var array<string, array<string, \Spatie\Enum\EnumDefinition>> */
/** @psalm-var array<class-string, array<string, \Spatie\Enum\EnumDefinition>> */
private static array $definitionCache = [];

/**
* This holds references to all enums created, at most 1 enum per class / value combination is created
* @psalm-var array<class-string, <int|string, Enum>>
*/
/** @psalm-var array<class-string, array<int|string, \Spatie\Enum\Enum>> */
private static array $instances = [];

/**
Expand Down

0 comments on commit c14dc46

Please sign in to comment.