-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] Deprecate TimezoneType regions option #28860
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
Conversation
to go after #28878 status: needs work |
#28878 has been merged now |
@yceruto a deprecated option doesnt behave correct yet, the opt-out isnt working. Each test triggers still
|
@ro0NL Travis only shows these https://travis-ci.org/symfony/symfony/jobs/445514267#L2911 |
That should be fixed updating the composer constraint of the FB I guess. |
Ups! I just saw this https://travis-ci.org/symfony/symfony/jobs/445514267#L3728 |
Fixed in #28968 |
…(yceruto) This PR was merged into the 4.2-dev branch. Discussion ---------- [OptionsResolver] Fixed explicitly ignores a depreciation | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #28860 (comment) | License | MIT | Doc PR | - When a deprecated option with default value was resolved (the first time it's called) in this case through a lazy evaluation, [the default resolution process](https://github.com/symfony/symfony/blob/8398947c9c1c1266aad0bea773d0b524e0d81643/src/Symfony/Component/OptionsResolver/OptionsResolver.php#L771-L773) takes the resolved value and here should also trigger only if the option was provided by the user or is being called from a lazy evaluation, otherwise ignore. Commits ------- 8398947 Fixed explicitly ignores a depreciation
Status: needs review |
Thank you @ro0NL. |
This PR was merged into the 4.2-dev branch. Discussion ---------- [Form] Deprecate TimezoneType regions option | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | yes | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | #28848 | License | MIT | Doc PR | symfony/symfony-docs#... <!-- required for new features --> I know i've added this option myself in 4.1, but given my recent development for #28624 i realized it's an opinionated feaure, which can/should be solved on user-side (`choice_filter/choice_loader` and/or `group_by`). - blocks translations as we dont have them (see #28831) - blocks possibility of switching to Intl zones which doesnt really have this filter feature (see #28836) ~While at it, i solved a few issues with `OptionsResolver` that is able to deprecate options as of 4.2 also.~ Fixed in #28878 - when resolved trigger the deprecation - allow to opt-out from triggering the deprecation - dont trigger deprecation for default values (only given ones) Commits ------- 5cb532d [Form] Deprecate TimezoneType regions option
This PR was merged into the master branch. Discussion ---------- [Form] Deprecated timezone regions option see symfony/symfony#28860 Commits ------- edf7f5d [Form] Deprecated timezone regions option
I know i've added this option myself in 4.1, but given my recent development for #28624 i realized it's an opinionated feaure, which can/should be solved on user-side (
choice_filter/choice_loader
and/orgroup_by
).While at it, i solved a few issues withFixed in #28878OptionsResolver
that is able to deprecate options as of 4.2 also.