From 7d71efcff357840428e7d0cac60d0abe5f0fc7fc Mon Sep 17 00:00:00 2001 From: Simon Asika Date: Mon, 25 Dec 2023 13:43:36 +0800 Subject: [PATCH] ns string --- packages/form/src/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/form/src/Form.php b/packages/form/src/Form.php index 8cd27cccd..110686a3e 100644 --- a/packages/form/src/Form.php +++ b/packages/form/src/Form.php @@ -142,7 +142,7 @@ public function add(string $name, mixed $field, ?string $fieldset = null): Abstr $field->setName($name); $namespace = implode('/', $this->namespaceStack) . '/' . $namespace; - $namespace = trim($namespace, '/') ?: null; + $namespace = trim($namespace, '/') ?: ''; return $this->addField($field, $fieldset, $namespace); }