Skip to content

Commit 4ebf00d

Browse files
committed
Merge branch '2.3' into 2.7
* 2.3: [Form] [Validator] Fix locale inconsistencies in Norwegian translations fixed CS [DependencyInjection] fixed exceptions thrown by get method of ContainerBuilder [Form] remove useless code in ResizeFormListener
2 parents 35e94d4 + 094f7a7 commit 4ebf00d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Extension/Core/EventListener/ResizeFormListener.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,6 @@ public function preSubmit(FormEvent $event)
102102
$form = $event->getForm();
103103
$data = $event->getData();
104104

105-
if (null === $data || '' === $data) {
106-
$data = array();
107-
}
108-
109105
if (!is_array($data) && !($data instanceof \Traversable && $data instanceof \ArrayAccess)) {
110106
$data = array();
111107
}

0 commit comments

Comments
 (0)