diff --git a/Parser/FormTypeParser.php b/Parser/FormTypeParser.php index 07ef09e..5e225c2 100644 --- a/Parser/FormTypeParser.php +++ b/Parser/FormTypeParser.php @@ -263,6 +263,11 @@ class FormTypeParser implements ParserInterface */ $addDefault = false; try { + + if (isset($subForm)) { + unset($subForm); + } + if (LegacyFormHelper::hasBCBreaks()) { try { $subForm = $this->formFactory->create(get_class($type), null, $options);