This commit is contained in:
2024-04-18 00:37:43 +08:00
parent b9940509a9
commit 26d32fbe7f
+1 -1
View File
@@ -15,7 +15,7 @@ class ArrayProxy extends TypesProxy
*/ */
public function dispatch(object $form, string $field, mixed $value): bool public function dispatch(object $form, string $field, mixed $value): bool
{ {
if (is_null($value)) { if (empty($value)) {
$form->{$field} = !$this->allowsNull ? [] : null; $form->{$field} = !$this->allowsNull ? [] : null;
return true; return true;
} }