From cf024deba581769fff361bb68b3a990a208e7ad2 Mon Sep 17 00:00:00 2001 From: Nico Stapelbroek Date: Sat, 9 Jun 2018 22:45:02 +0200 Subject: [PATCH] Set twig strict_variables config to suppress the deprecation notices 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 --- Tests/Functional/app/config/framework.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/Tests/Functional/app/config/framework.yml b/Tests/Functional/app/config/framework.yml index 8822b255..a1ee7822 100644 --- a/Tests/Functional/app/config/framework.yml +++ b/Tests/Functional/app/config/framework.yml @@ -14,5 +14,6 @@ framework: engines: ['twig'] twig: + strict_variables: "%kernel.debug%" #supresses deprecation notices about the default value TwigBundle pre version 5 paths: "%test.root_dir%/Resources/views": App