From 2c554e765cd03695e8a65210318e02a97e05237b Mon Sep 17 00:00:00 2001 From: whwyy Date: Wed, 10 Jan 2024 17:35:55 +0800 Subject: [PATCH] eee --- Validator.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Validator.php b/Validator.php index fc9adce..1eff678 100644 --- a/Validator.php +++ b/Validator.php @@ -94,15 +94,14 @@ class Validator extends BaseValidator /** - * @param ModelInterface $model + * @param array $attributes * @return bool */ - public function validation(ModelInterface $model): bool + public function validation(array $attributes): bool { if (count($this->validators) < 1) { return true; } - $attributes = $model->getChanges(); foreach ($attributes as $field => $attribute) { if (isset($this->validators[$field])) { $validator = $this->validators[$field];