From 7c6112b887b36645bed3cbf28d9b98ff73af85ad Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Sat, 25 Jul 2020 02:01:33 +0000 Subject: [PATCH] [FORM][WRAPPER] Merge argument options, not replace --- src/Core/Form.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Form.php b/src/Core/Form.php index 7d594482cd..67ec0c5694 100644 --- a/src/Core/Form.php +++ b/src/Core/Form.php @@ -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); }