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__);
trigger_deprecation('symfony/form', '5.1', 'Not passing a rounding mode to "%s()" is deprecated. Starting with Symfony 6.0 it will default to "\NumberFormatter::ROUND_HALFUP".', __METHOD__);
if ($this->choiceListFactoryinstanceof CachingFactoryDecorator) {
68
-
return;
69
-
}
70
-
71
-
$ref = new \ReflectionMethod($this->choiceListFactory, 'createListFromChoices');
72
-
73
-
if ($ref->getNumberOfParameters() < 3) {
74
-
trigger_deprecation('symfony/form', '5.1', 'Not defining a third parameter "callable|null $filter" in "%s::%s()" is deprecated.', $ref->class, $ref->name);
75
-
}
76
-
77
-
if (null !== $translator && !$translatorinstanceof TranslatorInterface) {
78
-
thrownew \TypeError(sprintf('Argument 2 passed to "%s()" must be han instance of "%s", "%s" given.', __METHOD__, TranslatorInterface::class, \is_object($translator) ? \get_class($translator) : \gettype($translator)));
79
-
}
80
62
$this->translator = $translator;
81
63
}
82
64
@@ -390,11 +372,7 @@ public function configureOptions(OptionsResolver $resolver)
390
372
'data_class' => null,
391
373
'choice_translation_domain' => true,
392
374
'trim' => false,
393
-
'invalid_message' => function (Options$options, $previousValue) {
0 commit comments