Skip to content

Commit 1cc68d0

Browse files
committed
minor #9050 [TwigBundle] Fix default value of strict_variables (yceruto)
This PR was merged into the 2.7 branch. Discussion ---------- [TwigBundle] Fix default value of strict_variables See https://github.com/symfony/symfony/blob/d78a98d793c2846d6decbff652d63f981e4f32f4/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php#L177 However, I'm proposing revert it since 4.1 and fix it inside the configuration section, see #9049 Commits ------- 3888217 Fix default value of strict_variables
2 parents 638063f + 3888217 commit 1cc68d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/configuration/twig.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ by Symfony. Besides, it simplifies how you refer to those templates:
439439
strict_variables
440440
~~~~~~~~~~~~~~~~
441441

442-
**type**: ``boolean`` **default**: ``'%kernel.debug%'``
442+
**type**: ``boolean`` **default**: ``false``
443443

444444
If set to ``true``, Symfony shows an exception whenever a Twig variable,
445445
attribute or method doesn't exist. If set to ``false`` these errors are ignored

0 commit comments

Comments
 (0)