From 26d32fbe7f93b2bf1cf8132c9ca3923491a2791a Mon Sep 17 00:00:00 2001 From: whwyy Date: Thu, 18 Apr 2024 00:37:43 +0800 Subject: [PATCH] eee --- src/Validator/Types/ArrayProxy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validator/Types/ArrayProxy.php b/src/Validator/Types/ArrayProxy.php index 5938ecb..778defd 100644 --- a/src/Validator/Types/ArrayProxy.php +++ b/src/Validator/Types/ArrayProxy.php @@ -15,7 +15,7 @@ class ArrayProxy extends TypesProxy */ public function dispatch(object $form, string $field, mixed $value): bool { - if (is_null($value)) { + if (empty($value)) { $form->{$field} = !$this->allowsNull ? [] : null; return true; }