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
trigger_deprecation('symfony/form', '5.3', 'Passing an array as the second argument of the "%s()" method is deprecated, pass "\Traversable" instead.', __METHOD__);
35
-
}
36
-
37
33
if (null === $choices) {
38
34
$choices = [];
39
35
}
@@ -51,12 +47,8 @@ public function mapDataToForms($choices, iterable $checkboxes)
trigger_deprecation('symfony/form', '5.3', 'Passing an array as the first argument of the "%s()" method is deprecated, pass "\Traversable" instead.', __METHOD__);
trigger_deprecation('symfony/form', '5.3', 'Passing an array as the second argument of the "%s()" method is deprecated, pass "\Traversable" instead.', __METHOD__);
45
-
}
46
-
47
43
$empty = null === $data || [] === $data;
48
44
49
45
if (!$empty && !\is_array($data) && !\is_object($data)) {
@@ -64,12 +60,8 @@ public function mapDataToForms($data, iterable $forms): void
trigger_deprecation('symfony/form', '5.3', 'Passing an array as the first argument of the "%s()" method is deprecated, pass "\Traversable" instead.', __METHOD__);
trigger_deprecation('symfony/form', '5.3', 'Passing an array as the second argument of the "%s()" method is deprecated, pass "\Traversable" instead.', __METHOD__);
@@ -47,12 +47,8 @@ public function mapDataToForms($choice, iterable $radios)
trigger_deprecation('symfony/form', '5.3', 'Passing an array as the first argument of the "%s()" method is deprecated, pass "\Traversable" instead.', __METHOD__);
54
-
}
55
-
56
52
if (null !== $choice && !\is_string($choice)) {
57
53
thrownewUnexpectedTypeException($choice, 'null or string');
@@ -66,12 +65,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
66
65
$builder->addEventSubscriber(newTrimListener());
67
66
}
68
67
69
-
if (!method_exists($builder, 'setIsEmptyCallback')) {
70
-
trigger_deprecation('symfony/form', '5.1', 'Not implementing the "%s::setIsEmptyCallback()" method in "%s" is deprecated.', FormConfigBuilderInterface::class, get_debug_type($builder));
Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Form.php
+1-9
Original file line number
Diff line number
Diff line change
@@ -724,15 +724,7 @@ public function isEmpty()
724
724
}
725
725
}
726
726
727
-
if (!method_exists($this->config, 'getIsEmptyCallback')) {
728
-
trigger_deprecation('symfony/form', '5.1', 'Not implementing the "%s::getIsEmptyCallback()" method in "%s" is deprecated.', FormConfigInterface::class, \get_class($this->config));
0 commit comments