diff --git a/src/Enum.php b/src/Enum.php
index <HASH>..<HASH> 100644
--- a/src/Enum.php
+++ b/src/Enum.php
@@ -188,7 +188,7 @@ abstract class Enum
      */
     final public static function byValue($value)
     {
-        if (!isset(self::$names[static::class])) {
+        if (!isset(self::$constants[static::class])) {
             self::detectConstants(static::class);
         }
Less diff var usage on Enum::byValue()