diff --git a/src/Validator.php b/src/Validator.php index 3b4d291..d3fe7db 100644 --- a/src/Validator.php +++ b/src/Validator.php @@ -124,6 +124,8 @@ protected function checkPasses(mixed $validator, string $field, ?string $ruleNam { if(!isset($this->data[$field]) && $ruleName !== 'required') return ; + $this->data[$field] = isset($this->data[$field]) ? $this->data[$field] : ''; + if (!$validator->passes($field, $this->data[$field], $this->data)) { $assert = isset($ruleName) && isset($this->messages[$field][$ruleName]);