From 2e58f99a02d251e58b87d78ca20ced5db142151f Mon Sep 17 00:00:00 2001 From: Jarred Stelfox Date: Wed, 12 Feb 2020 09:34:01 -0800 Subject: [PATCH] Force psalm to accept toArray as pure 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. --- src/Enum.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Enum.php b/src/Enum.php index b502c34..0527356 100644 --- a/src/Enum.php +++ b/src/Enum.php @@ -146,6 +146,7 @@ public static function values() * Returns all possible values as an array * * @psalm-pure + * @psalm-suppress ImpureStaticProperty * * @psalm-return array * @return array Constant name in key, constant value in value