From 96c5adad6a94e6a52e18061ad2da73f4fe47f9a4 Mon Sep 17 00:00:00 2001 From: Yonel Ceruto Date: Sat, 24 Aug 2024 08:29:06 -0400 Subject: [PATCH] Fix Twig deprecation notice --- Tests/NodeVisitor/TwigNodeProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/NodeVisitor/TwigNodeProvider.php b/Tests/NodeVisitor/TwigNodeProvider.php index e23b0a4f..7a79c341 100644 --- a/Tests/NodeVisitor/TwigNodeProvider.php +++ b/Tests/NodeVisitor/TwigNodeProvider.php @@ -28,7 +28,7 @@ class TwigNodeProvider public static function getModule($content) { return new ModuleNode( - new ConstantExpression($content, 0), + new BodyNode([new ConstantExpression($content, 0)]), null, new ArrayExpression([], 0), new ArrayExpression([], 0),