Skip to content

Commit

Permalink
Update IsBackedEnum.php
Browse files Browse the repository at this point in the history
  • Loading branch information
hailwood authored Oct 4, 2023
1 parent 0537422 commit 0f98556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/IsBackedEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0f98556

Please sign in to comment.