8000 [Form] fixed "empty_value" option deprecation by HeahDude · Pull Request #20425 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[Form] fixed "empty_value" option deprecation #20425

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2016

Conversation

HeahDude
Copy link
Contributor
@HeahDude HeahDude commented Nov 6, 2016
Q A
Branch? 2.x only
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #15945 (comment)
License MIT
Doc PR ~

I didn't make any profiling but a resolver instance is passed to configureOptions() creating locale variables including those exceptions for each field using one of the patched form types, so I guess the memory usage can grow really fast.

@@ -39,6 +39,9 @@

class ChoiceType extends AbstractType
{
// To be removed in 3.0
const DEPRECATED_EMPTY_VALUE = '__deprecated_empty_value__';
Copy link
Member

Choose a reason for hiding this comment

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

@internal then

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@nicolas-grekas done :)

@HeahDude HeahDude force-pushed the fix/empty_value-deprecation branch from f186f6f to 7e84907 Compare November 25, 2016 19:10
@HeahDude
Copy link
Contributor Author
HeahDude commented Dec 3, 2016

ping @fabpot :)

@fabpot
Copy link
Member
fabpot commented Dec 3, 2016

Thank you @HeahDude.

@fabpot fabpot merged commit 7e84907 into symfony:2.7 Dec 3, 2016
fabpot added a commit that referenced this pull request Dec 3, 2016
This PR was merged into the 2.7 branch.

Discussion
----------

[Form] fixed "empty_value" option deprecation

| Q             | A
| ------------- | ---
| Branch?       | 2.x only
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #15945 (comment)
| License       | MIT
| Doc PR        | ~

I didn't make any profiling but a resolver instance is passed to `configureOptions()` creating locale variables including those exceptions for each field using one of the patched form types, so I guess the memory usage can grow really fast.

Commits
-------

7e84907 [Form] fixed "empty_value" option deprecation
@HeahDude HeahDude deleted the fix/empty_value-deprecation branch December 3, 2016 12:21
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
0