Skip to content

Commit

Permalink
change typehint for enum rule from string to class-string (#50603)
Browse files Browse the repository at this point in the history
  • Loading branch information
liamduckett authored Mar 18, 2024
1 parent 8af24b8 commit 50124be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Validation/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public static function prohibitedIf($callback)
/**
* Get an enum constraint builder instance.
*
* @param string $type
* @param class-string $type
* @return \Illuminate\Validation\Rules\Enum
*/
public static function enum($type)
Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Validation/Rules/Enum.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class Enum implements Rule, ValidatorAwareRule
/**
* The type of the enum.
*
* @var string
* @var class-string
*/
protected $type;

Expand Down Expand Up @@ -43,7 +43,7 @@ class Enum implements Rule, ValidatorAwareRule
/**
* Create a new rule instance.
*
* @param string $type
* @param class-string $type
* @return void
*/
public function __construct($type)
Expand Down

0 comments on commit 50124be

Please sign in to comment.