From b27f214c70ecff980bfddca945a6cf3925243883 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Frederic=20G=2E=20=C3=98stby?= Date: Thu, 16 Nov 2023 21:44:51 +0100 Subject: [PATCH] Update Validator.php --- src/mako/validator/Validator.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mako/validator/Validator.php b/src/mako/validator/Validator.php index 9c26020e9..df55679ed 100644 --- a/src/mako/validator/Validator.php +++ b/src/mako/validator/Validator.php @@ -57,6 +57,7 @@ use mako\validator\rules\MatchField; use mako\validator\rules\MaxLength; use mako\validator\rules\MinLength; +use mako\validator\rules\NotEmpty; use mako\validator\rules\NotIn; use mako\validator\rules\Number; use mako\validator\rules\NumberFloat; @@ -147,6 +148,7 @@ class Validator 'mime_type' => MimeType::class, 'min_dimensions' => MinDimensions::class, 'min_length' => MinLength::class, + 'not_empty' => NotEmpty::class, 'not_in' => NotIn::class, 'number:float' => NumberFloat::class, 'number:int' => NumberInt::class,