You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/EventListener/ResizeFormListener.php
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -102,11 +102,16 @@ public function preSubmit(FormEvent $event)
102
102
$form = $event->getForm();
103
103
$data = $event->getData();
104
104
105
+
106
+
if ($datainstanceof \Traversable){
107
+
@trigger_error('Support for Traversable is deprecated since version 3.1 and will be removed in 4.0. You should not use it anymore.', E_USER_DEPRECATED);
108
+
}
109
+
105
110
if (null === $data || '' === $data) {
106
111
$data = array();
107
112
}
108
113
109
-
if (!is_array($data) && !($datainstanceof \Traversable && $datainstanceof \ArrayAccess)) {
114
+
if (!is_array($data) && !$datainstanceof \ArrayAccess) {
0 commit comments