diff --git a/src/Enum.php b/src/Enum.php index 869a7a0..1a41655 100644 --- a/src/Enum.php +++ b/src/Enum.php @@ -151,7 +151,7 @@ public static function isValidValue( $value ): bool { - return \in_array($value, self::getAvailableValues(), true); + return \in_array($value, static::getAvailableValues(), true); } protected function checkSameEnum(