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/Type/ChoiceType.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -294,7 +2
9F1D
94,7 @@ public function configureOptions(OptionsResolver $resolver)
294
294
295
295
$choiceListNormalizer = function (Options$options, $choiceList) use ($choiceListFactory) {
296
296
if ($choiceList) {
297
-
@trigger_error('The "choice_list" option is deprecated since version 2.7 and will be removed in 3.0. Use "choice_loader" instead.', E_USER_DEPRECATED);
297
+
@trigger_error(sprintf('The "choice_list" option of a %s form type is deprecated since version 2.7 and will be removed in 3.0. Use "choice_loader" instead.', __CLASS__), E_USER_DEPRECATED);
298
298
299
299
if ($choiceListinstanceof LegacyChoiceListInterface) {
300
300
returnnewLegacyChoiceListAdapter($choiceList);
@@ -323,7 +323,7 @@ public function configureOptions(OptionsResolver $resolver)
323
323
324
324
$placeholderNormalizer = function (Options$options, $placeholder) {
325
325
if (!is_object($options['empty_value']) || !$options['empty_value'] instanceof \Exception) {
326
-
@trigger_error('The form option "empty_value" is deprecated since version 2.6 and will be removed in 3.0. Use "placeholder" instead.', E_USER_DEPRECATED);
326
+
@trigger_error(sprintf('The form option "empty_value" of a %s form type is deprecated since version 2.6 and will be removed in 3.0. Use "placeholder" instead.', __CLASS__), E_USER_DEPRECATED);
0 commit comments