diff --git a/src/IsBackedEnum.php b/src/IsBackedEnum.php index c725491..2ec7226 100644 --- a/src/IsBackedEnum.php +++ b/src/IsBackedEnum.php @@ -65,7 +65,7 @@ public static function labelFor(self $value): string return app('translator')->has($lang_key) ? __($lang_key) : $value->value; } - public static function rule(): Rules\Enum + public static function rule(): EnumValidationRule { static::ensureImplementsInterface(); return new EnumValidationRule(static::class);