Skip to content

Commit

Permalink
Force psalm to accept toArray as pure
Browse files Browse the repository at this point in the history
See previous commit.

Psalm isn't actually wrong here, but we are willing to lie to psalm
since the impurity is just an internal cache.
  • Loading branch information
jarstelfox committed Feb 12, 2020
1 parent 3d5c198 commit 2e58f99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public static function values()
* Returns all possible values as an array
*
* @psalm-pure
* @psalm-suppress ImpureStaticProperty
*
* @psalm-return array<string, mixed>
* @return array Constant name in key, constant value in value
Expand Down

0 comments on commit 2e58f99

Please sign in to comment.