You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Symfony is not reporting the deprecation which has been added in #28723, in the profiler. As a result, as soon as I upgraded some internal server errors popped up.
How to reproduce
I have created a very simple repository to reproduce the issue: https://github.com/tjveldhuizen/symfony-missing-deprecation-reproducer. When running this with 'symfony serve', at https://localhost:8000/ a very simple form is shown and the profiler is not showing any deprecations.
After replacing all "4.4" with "5.1" in composer.json and running composer upgrade, it shows a LogicException Cannot use the "format" option of "Symfony\Component\Form\Extension\Core\Type\DateTimeType" when the "html5" option is enabled.
The text was updated successfully, but these errors were encountered:
…fancyweb)
This PR was merged into the 4.4 branch.
Discussion
----------
[Form] Fix custom formats deprecation with HTML5 widgets
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | #37698
| License | MIT
| Doc PR | -
1. The options resolver only show the deprecations for user defined (overidden) options.
2. The default value of the `html5` option is enough to pass the logical condition of the callback.
That means that only setting the `format` option (like in the reproducer) does not trigger the deprecation while it should. I think we need a feature in the options resolver component to handle those kind of cases 🤷♂️
Meanwhile, we can fix the issue by "deprecating" all the concerned options of the logical condition of the callback.
Commits
-------
d28182f [Form] Fix custom formats deprecation with HTML5 widgets
Symfony version(s) affected: 4.4.11
Description
Symfony is not reporting the deprecation which has been added in #28723, in the profiler. As a result, as soon as I upgraded some internal server errors popped up.
How to reproduce
I have created a very simple repository to reproduce the issue: https://github.com/tjveldhuizen/symfony-missing-deprecation-reproducer. When running this with 'symfony serve', at https://localhost:8000/ a very simple form is shown and the profiler is not showing any deprecations.
After replacing all "4.4" with "5.1" in composer.json and running
composer upgrade
, it shows a LogicExceptionCannot use the "format" option of "Symfony\Component\Form\Extension\Core\Type\DateTimeType" when the "html5" option is enabled.
The text was updated successfully, but these errors were encountered: