From 6efd221585996a088df5ebb65b9660485b7aecf0 Mon Sep 17 00:00:00 2001 From: whwyy Date: Thu, 18 Apr 2024 00:58:13 +0800 Subject: [PATCH] eee --- src/Validator/Types/ArrayProxy.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Validator/Types/ArrayProxy.php b/src/Validator/Types/ArrayProxy.php index 7955706..b004b96 100644 --- a/src/Validator/Types/ArrayProxy.php +++ b/src/Validator/Types/ArrayProxy.php @@ -16,8 +16,7 @@ class ArrayProxy extends TypesProxy public function dispatch(object $form, string $field, mixed $value): bool { if (empty($value)) { - $form->{$field} = !$this->allowsNull ? [] : null; - return true; + return ($form->{$field} = []) === []; } else { return $value == ($form->{$field} = $value); }