From 0758daca71c92dce2530770a6d650cfbde6402fe Mon Sep 17 00:00:00 2001 From: Simon Asika Date: Mon, 25 Dec 2023 13:43:36 +0800 Subject: [PATCH] ns string --- src/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form.php b/src/Form.php index 8cd27cc..110686a 100644 --- a/src/Form.php +++ b/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); }