Skip to content

Conversation

@stof
Copy link
Member

@stof stof commented Dec 9, 2025

Q A
Branch? 7.4
Bug fix? yes
New feature? no
Deprecations? yes
Issues n/a
License MIT

Setting the exception_controller setting to null was the opt-in for the Symfony 5.0 behavior in TwigBundle 4.4 and so was kept supported as a no-op in 5.0+ to support the migration path, without ever being deprecated.
This setting was removed in 7.4.0 without deprecation, without realizing that it was part of this compat layer. This replaces this removal with a deprecation (reported as if it was introduced in 7.4 from the start) while the removal will be preserved in Symfony 8.0.

@stof stof requested a review from yceruto as a code owner December 9, 2025 15:25
@carsonbot carsonbot added this to the 7.4 milestone Dec 9, 2025
@carsonbot carsonbot changed the title Fix unintended BC break for the exception_controller twig setting Fix unintended BC break for the exception_controller twig setting Dec 9, 2025
@stof stof force-pushed the fix_twig_config_regression branch 2 times, most recently from 33f657a to 3189dae Compare December 9, 2025 15:29
@stof stof force-pushed the fix_twig_config_regression branch from 3189dae to 8819863 Compare December 9, 2025 15:34
@carsonbot carsonbot changed the title Fix unintended BC break for the exception_controller twig setting [TwigBundle] Fix unintended BC break for the exception_controller twig setting Dec 9, 2025
@GromNaN GromNaN changed the title [TwigBundle] Fix unintended BC break for the exception_controller twig setting [TwigBundle] Fix unintended BC break for the exception_controller twig setting Dec 9, 2025
Setting this setting to `null` was the opt-in for the Symfony 5.0
behavior in TwigBundle and so was kept supported as a no-op in 5.0+ to
support the migration path, without ever being deprecated.
This setting was removed in 7.4.0 without deprecation, without realizing
that it was part of this compat layer. This replaces this removal with a
deprecation (reported as if it was introduced in 7.4 from the start)
while the removal will be preserved in Symfony 8.0.
@stof stof force-pushed the fix_twig_config_regression branch from 8819863 to 683c79f Compare December 10, 2025 08:58
@nicolas-grekas
Copy link
Member

Thank you @stof.

@nicolas-grekas nicolas-grekas merged commit 663ec5d into symfony:7.4 Dec 10, 2025
17 of 18 checks passed
@stof stof deleted the fix_twig_config_regression branch December 11, 2025 08:43
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.

6 participants