Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c80c8b7

Browse filesBrowse 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
Copy full SHA for c80c8b7

File tree

Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php
-3Lines 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
$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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.