[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 fdcedb8295
commit b4fb1569ce
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);
}