Skip to content

Commit 74de492

Browse files
authored
Fix strict_variables default value since Symfony 5
The default was changed in https://github.com/symfony/symfony/blob/494ef421c554a78b38c6779c4b7deb9a20d89923/UPGRADE-5.0.md#twigbundle
1 parent f66d64d commit 74de492

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)