From 6d2ae9b464be54b1115a1b012efb2301b1e4c027 Mon Sep 17 00:00:00 2001 From: Erik Perri Date: Tue, 16 Apr 2024 19:26:32 -0400 Subject: [PATCH] docs: add enum typehints to static rule helper --- 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)