@@ -70,7 +70,7 @@ public function getValue()
7070 /**
7171 * Returns the enum key (i.e. the constant name).
7272 *
73- * @psalm-pure
73+ * @psalm-external-mutation-free
7474 * @return mixed
7575 */
7676 public function getKey ()
@@ -106,6 +106,7 @@ final public function equals($variable = null): bool
106106 /**
107107 * Returns the names (keys) of all constants in the Enum class
108108 *
109+ * @psalm-external-mutation-free
109110 * @return array
110111 */
111112 public static function keys ()
@@ -116,6 +117,7 @@ public static function keys()
116117 /**
117118 * Returns instances of the Enum class of all Enum constants
118119 *
120+ * @psalm-external-mutation-free
119121 * @return static[] Constant name in key, Enum instance in value
120122 */
121123 public static function values ()
@@ -132,7 +134,7 @@ public static function values()
132134 /**
133135 * Returns all possible values as an array
134136 *
135- * @psalm-pure
137+ * @psalm-external-mutation-free
136138 * @psalm-return array<string, mixed>
137139 * @return array Constant name in key, constant value in value
138140 */
@@ -153,7 +155,7 @@ public static function toArray()
153155 *
154156 * @param $value
155157 * @psalm-param mixed $value
156- *
158+ * @psalm-external-mutation-free
157159 * @return bool
158160 */
159161 public static function isValid ($ value )
@@ -166,7 +168,7 @@ public static function isValid($value)
166168 *
167169 * @param $key
168170 * @psalm-param string $key
169- *
171+ * @psalm-external-mutation-free
170172 * @return bool
171173 */
172174 public static function isValidKey ($ key )
@@ -182,7 +184,7 @@ public static function isValidKey($key)
182184 * @param $value
183185 *
184186 * @psalm-param mixed $value
185- * @psalm-pure
187+ * @psalm-external-mutation-free
186188 * @return mixed
187189 */
188190 public static function search ($ value )
@@ -197,6 +199,7 @@ public static function search($value)
197199 * @param array $arguments
198200 *
199201 * @return static
202+ * @psalm-external-mutation-free
200203 * @throws \BadMethodCallException
201204 */
202205 public static function __callStatic ($ name , $ arguments )
0 commit comments