Skip to content

Commit

Permalink
chore: typehint argument as class-string instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
bradietilley committed May 20, 2024
1 parent 393e8e6 commit 7dbba0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Concerns/CoreRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,8 @@ public function endsWith(string ...$prefixes): static
}

/**
* @param class-string|Enum $enum
*
* @link https://laravel.com/docs/master/validation#rule-enum
*/
public function enum(string|Enum $enum): static
Expand Down

0 comments on commit 7dbba0b

Please sign in to comment.