[FORM][WRAPPER] Merge argument options, not replace

This commit is contained in:
Hugo Sales 2020-07-25 02:01:33 +00:00 committed by Hugo Sales
parent a85fc2d0bd
commit 7c6112b887
Signed by: someonewithpc
GPG Key ID: 7D0C7EAFC9D835A0
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ abstract class Form
string $type = 'Symfony\Component\Form\Extension\Core\Type\FormType',
array $options = null): SymfForm
{
$fb = self::$form_factory->createBuilder($type, $options ?: ['translation_domain' => false]);
$fb = self::$form_factory->createBuilder($type, array_merge($options ?? [], ['translation_domain' => false]));
foreach ($form as $f) {
$fb->add(...$f);
}