diff --git a/src/Core/Form.php b/src/Core/Form.php index cca46d524d..bc8947de87 100644 --- a/src/Core/Form.php +++ b/src/Core/Form.php @@ -85,10 +85,10 @@ abstract class Form ?object $target = null, array $extra_data = [], string $type = 'Symfony\Component\Form\Extension\Core\Type\FormType', - array $builder_options = []): SymfForm + array $form_options = []): SymfForm { $name = $form[array_key_last($form)][0]; - $fb = self::$form_factory->createNamedBuilder($name, $type, array_merge($builder_options, ['translation_domain' => false])); + $fb = self::$form_factory->createNamedBuilder($name, $type, data: null, options: array_merge($form_options, ['translation_domain' => false])); foreach ($form as [$key, $class, $options]) { if ($target != null && empty($options['data']) && (strstr($key, 'password') == false) && $class != SubmitType::class) { if (isset($extra_data[$key])) {