8000 minor #17784 [Form] remove deprecated empty_value_in_choices (Tobion) · symfony/symfony@c80c8b7 · GitHub
[go: up one dir, main page]

Skip to content

Commit c80c8b7

Browse files
committed
minor #17784 [Form] remove deprecated empty_value_in_choices (Tobion)
This PR was merged into the 3.0 branch. Discussion ---------- [Form] remove deprecated empty_value_in_choices | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | tiny | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This has been deprecated since 2.6 in #12003. One part has already been removed (`empty_value`) but this part has been forgotten. Commits ------- 735f92e [Form] remove deprecated empty_value_in_choices
2 parents 74c4974 + 735f92e commit c80c8b7

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,6 @@ public function buildView(FormView $view, FormInterface $form, array $options)
210210
< 65FE span class=pl-c1>$view->vars['placeholder'] = $options['placeholder'];
211211
}
212212

213-
// BC
214-
$view->vars['empty_value_in_choices'] = $view->vars['placeholder_in_choices'];
215-
216213
if ($options['multiple'] && !$options['expanded']) {
217214
// Add "[]" to the name in case a select tag with multiple options is
218215
// displayed. Otherwise only one of the selected options is sent in the

0 commit comments

Comments
 (0)
0