Skip to content

Commit 30aeb8a

Browse files
authored
set class-string generics (#55588)
1 parent f3ae414 commit 30aeb8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Validation/Rules/Enum.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Enum implements Rule, ValidatorAwareRule
1616
/**
1717
* The type of the enum.
1818
*
19-
* @var class-string
19+
* @var class-string<\UnitEnum>
2020
*/
2121
protected $type;
2222

@@ -44,7 +44,7 @@ class Enum implements Rule, ValidatorAwareRule
4444
/**
4545
* Create a new rule instance.
4646
*
47-
* @param class-string $type
47+
* @param class-string<\UnitEnum> $type
4848
*/
4949
public function __construct($type)
5050
{

0 commit comments

Comments
 (0)