From 49cefbd1f9a3eb7ed71766259af76afb226f3424 Mon Sep 17 00:00:00 2001 From: whwyy Date: Mon, 18 Dec 2023 15:04:56 +0800 Subject: [PATCH] eee --- Validator.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Validator.php b/Validator.php index d6fe049..2e5c449 100644 --- a/Validator.php +++ b/Validator.php @@ -36,10 +36,10 @@ class Validator extends BaseValidator 'json' => ['class' => TypesOfValidator::class, 'method' => TypesOfValidator::JSON,], 'float' => ['class' => TypesOfValidator::class, 'method' => TypesOfValidator::FLOAT,], 'array' => ['class' => TypesOfValidator::class, 'method' => TypesOfValidator::ARRAY,], - 'maxlength' => ['class' => LengthValidator::class, 'method' => 'max',], - 'minlength' => ['class' => LengthValidator::class, 'method' => 'min',], - 'email' => ['class' => EmailValidator::class, 'method' => 'email',], - 'length' => ['class' => LengthValidator::class, 'method' => 'default',], + 'maxlength' => ['class' => LengthValidator::class, 'method' => LengthValidator::MAX_LENGTH,], + 'minlength' => ['class' => LengthValidator::class, 'method' => LengthValidator::MIN_LENGTH,], + 'email' => ['class' => EmailValidator::class], + 'length' => ['class' => LengthValidator::class], 'round' => ['class' => RoundValidator::class,], ];