Skip to content

Conversation

@HeahDude
Copy link
Contributor

Q A
Branch? 3.0
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets n/a
License MIT
Doc PR -

@HeahDude HeahDude force-pushed the minor-choice_type-unused_code branch from c9358b2 to 8af78e9 Compare March 24, 2016 19:00
$options['group_by'] = !$options['choices_as_values']
? self::flipRecursive($options['choices'])
: $options['choices'];
$options['group_by'] = $options['choices'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if someone still uses the choices_as_values option?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xabbuh Thanks for the review.

choices_as_values is normalized to true since 3.0 and deprecated in 3.1.

This change is safe.

@xabbuh
Copy link
Member

xabbuh commented Mar 24, 2016

👍

@Tobion
Copy link
Contributor

Tobion commented Mar 25, 2016

Good catch, thanks @HeahDude.

@Tobion Tobion merged commit 8af78e9 into symfony:3.0 Mar 25, 2016
Tobion added a commit that referenced this pull request Mar 25, 2016
This PR was merged into the 3.0 branch.

Discussion
----------

[Form] Remove unused legacy code in `ChoiceType`

| Q             | A
| ------------- | ---
| Branch?       | 3.0
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | -

Commits
-------

8af78e9 [Form] Remove unused legacy code in `ChoiceType`
@HeahDude HeahDude deleted the minor-choice_type-unused_code branch March 25, 2016 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants