mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 12:06:56 +00:00
Fix null-safe operator test
This commit is contained in:
@@ -302,7 +302,7 @@ class ExpressionParserTest extends TestCase
|
||||
*/
|
||||
public function testNullSafeOperator($template, $data, $expected)
|
||||
{
|
||||
$env = new Environment(new ArrayLoader(['template' => $template]));
|
||||
$env = new Environment(new ArrayLoader(['template' => $template]), ['strict_variables' => true]);
|
||||
|
||||
$this->assertSame($expected, $env->render('template', $data));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user