From a16ac6bd3553a0685c5fc8c32f1e1d73dffd31de Mon Sep 17 00:00:00 2001 From: HypeMC Date: Sun, 25 Jan 2026 04:57:19 +0100 Subject: [PATCH] Fix null-safe operator test --- tests/ExpressionParserTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ExpressionParserTest.php b/tests/ExpressionParserTest.php index 2d24089cd..9cf9cbebb 100644 --- a/tests/ExpressionParserTest.php +++ b/tests/ExpressionParserTest.php @@ -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)); }