From 1de9b485f1356cbb4c6928a1f15525b5312097db Mon Sep 17 00:00:00 2001 From: Michael Nabil Date: Mon, 26 Feb 2024 17:15:06 +0200 Subject: [PATCH] Add `Conditionable` trait --- src/Illuminate/Validation/Rules/Enum.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Illuminate/Validation/Rules/Enum.php b/src/Illuminate/Validation/Rules/Enum.php index 42d9e6f012d2..62114626eca7 100644 --- a/src/Illuminate/Validation/Rules/Enum.php +++ b/src/Illuminate/Validation/Rules/Enum.php @@ -5,10 +5,13 @@ use Illuminate\Contracts\Validation\Rule; use Illuminate\Contracts\Validation\ValidatorAwareRule; use Illuminate\Support\Arr; +use Illuminate\Support\Traits\Conditionable; use TypeError; class Enum implements Rule, ValidatorAwareRule { + use Conditionable; + /** * The type of the enum. *