From 9b3bb15ab4d8e7a80bda82ffbe92613f15f69fee Mon Sep 17 00:00:00 2001 From: Erik Perri <46399654+erik-perri@users.noreply.github.com> Date: Wed, 17 Apr 2024 10:17:52 -0400 Subject: [PATCH] docs: add enum typehints to static rule helper (#51090) --- src/Illuminate/Validation/Rule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Validation/Rule.php b/src/Illuminate/Validation/Rule.php index 2c0ae55b7b27..a2aa467e3033 100644 --- a/src/Illuminate/Validation/Rule.php +++ b/src/Illuminate/Validation/Rule.php @@ -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) @@ -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)