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.
2 parents c0bcd73 + 0b15321 commit 5fa55b5Copy full SHA for 5fa55b5
src/Enum.php
@@ -79,7 +79,7 @@ public function __toString()
79
*/
80
public static function keys()
81
{
82
- return array_keys(static::toArray());
+ return array_keys(self::toArray());
83
}
84
85
/**
@@ -130,7 +130,7 @@ public static function isValidKey($key)
130
131
public static function search($value)
132
133
- return array_search($value, array_combine(self::keys(), self::toArray()));
+ return array_search($value, self::toArray());
134
135
136
0 commit comments