Skip to content

Commit

Permalink
docs: add enum typehints to static rule helper (#51090)
Browse files Browse the repository at this point in the history
  • Loading branch information
erik-perri authored Apr 17, 2024
1 parent 724af37 commit 9b3bb15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Validation/Rule.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public static function exists($table, $column = 'NULL')
/**
* Get an in constraint builder instance.
*
* @param \Illuminate\Contracts\Support\Arrayable|array|string $values
* @param \Illuminate\Contracts\Support\Arrayable|\BackedEnum|\UnitEnum|array|string $values
* @return \Illuminate\Validation\Rules\In
*/
public static function in($values)
Expand All @@ -112,7 +112,7 @@ public static function in($values)
/**
* Get a not_in constraint builder instance.
*
* @param \Illuminate\Contracts\Support\Arrayable|array|string $values
* @param \Illuminate\Contracts\Support\Arrayable|\BackedEnum|\UnitEnum|array|string $values
* @return \Illuminate\Validation\Rules\NotIn
*/
public static function notIn($values)
Expand Down

0 comments on commit 9b3bb15

Please sign in to comment.