Skip to content

Commit 2ac436c

Browse files
committed
minor symfony#17792 [Form] remove useless code in ResizeFormListener (Tobion)
This PR was merged into the 2.3 branch. Discussion ---------- [Form] remove useless code in ResizeFormListener | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 088c20c [Form] remove useless code in ResizeFormListener
2 parents 1be2d34 + 088c20c commit 2ac436c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php

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

99-
if (null === $data || '' === $data) {
100-
$data = array();
101-
}
102-
10399
if (!is_array($data) && !($data instanceof \Traversable && $data instanceof \ArrayAccess)) {
104100
$data = array();
105101
}

0 commit comments

Comments
 (0)