minor #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
This commit is contained in:
Fabien Potencier 2016-02-14 11:00:47 +01:00
commit 2ac436c9ae
1 changed files with 0 additions and 4 deletions

View File

@ -96,10 +96,6 @@ class ResizeFormListener implements EventSubscriberInterface
$form = $event->getForm();
$data = $event->getData();
if (null === $data || '' === $data) {
$data = array();
}
if (!is_array($data) && !($data instanceof \Traversable && $data instanceof \ArrayAccess)) {
$data = array();
}