[Form] remove useless code in ResizeFormListener
This commit is contained in:
parent
1be2d34e16
commit
088c20c9b3
|
@ -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