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:
commit
2ac436c9ae
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user