Skip to content

Commit

Permalink
ns string
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Dec 25, 2023
1 parent ba76ff3 commit 0758dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0758dac

Please sign in to comment.