This commit is contained in:
2024-04-18 00:58:13 +08:00
parent ebc39a6938
commit 6efd221585
+1 -2
View File
@@ -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);
}