We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 616601d commit a681789Copy full SHA for a681789
src/Enum.php
@@ -83,9 +83,8 @@ public function getValue()
83
* Returns the enum key (i.e. the constant name).
84
*
85
* @psalm-pure
86
- * @return mixed
87
*/
88
- public function getKey()
+ public function getKey(): string
89
{
90
return static::search($this->value);
91
}
@@ -200,11 +199,11 @@ public static function isValidKey($key)
200
199
/**
201
* Return key for value
202
203
- * @param $value
+ * @param mixed $value
204
205
* @psalm-param mixed $value
206
207
+ * @return string|false
208
209
public static function search($value)
210
0 commit comments