Skip to content

Commit 18a5e73

Browse files
committed
minor #14574 [Twig] Fix strict_variables default value since Symfony 5 (ogizanagi)
This PR was merged into the 5.1 branch. Discussion ---------- [Twig] Fix strict_variables default value since Symfony 5 The default was changed as of Symfony 5 https://github.com/symfony/symfony/blob/494ef421c554a78b38c6779c4b7deb9a20d89923/UPGRADE-5.0.md#twigbundle Commits ------- 74de492 Fix strict_variables default value since Symfony 5
2 parents c79d565 + 74de492 commit 18a5e73

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
@@ -363,7 +363,7 @@ Read more about :ref:`template directories and namespaces <templates-namespaces>
363363
strict_variables
364364
~~~~~~~~~~~~~~~~
365365

366-
**type**: ``boolean`` **default**: ``false``
366+
**type**: ``boolean`` **default**: ``%kernel.debug%``
367367

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

0 commit comments

Comments
 (0)