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
This commit is contained in:
Fabien Potencier 2016-02-14 10:59:52 +01:00
commit c80c8b71ce

View File

@ -210,9 +210,6 @@ class ChoiceType extends AbstractType
$view->vars['placeholder'] = $options['placeholder'];
}
// BC
$view->vars['empty_value_in_choices'] = $view->vars['placeholder_in_choices'];
if ($options['multiple'] && !$options['expanded']) {
// Add "[]" to the name in case a select tag with multiple options is
// displayed. Otherwise only one of the selected options is sent in the