Skip to content

Commit c7b9b30

Browse files
committed
Less diff var usage on Enum::byValue()
1 parent 2e92585 commit c7b9b30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Enum.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ final public static function get($enumerator)
188188
*/
189189
final public static function byValue($value)
190190
{
191-
if (!isset(self::$names[static::class])) {
191+
if (!isset(self::$constants[static::class])) {
192192
self::detectConstants(static::class);
193193
}
194194

0 commit comments

Comments
 (0)