Skip to content

Commit 9bf308c

Browse files
nstapelbroekNyholm
authored andcommitted
Set twig strict_variables config to suppress the deprecation notices (#237)
This is a behavioural change: the default value is 'false' compared to the new default value of '%kernel.debug%' which eventually evaluates to true when running the tests. Since it seems that this configuration is only used in the functional tests, there should be nothing functionally breaking in the bundle
1 parent 689d324 commit 9bf308c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Tests/Functional/app/config/framework.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ framework:
1414
engines: ['twig']
1515

1616
twig:
17+
strict_variables: "%kernel.debug%" #supresses deprecation notices about the default value TwigBundle pre version 5
1718
paths:
1819
"%test.root_dir%/Resources/views": App

0 commit comments

Comments
 (0)