Skip to content

Commit a2ad15c

Browse files
committed
bug symfony#58078 [TwigBridge] Fix Twig deprecation notice (yceruto)
This PR was merged into the 5.4 branch. Discussion ---------- [TwigBridge] Fix Twig deprecation notice | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Commits ------- 13ee9f3 Fix Twig deprecation notice
2 parents 86ccbdb + 13ee9f3 commit a2ad15c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bridge/Twig/Tests/NodeVisitor/TwigNodeProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class TwigNodeProvider
2828
public static function getModule($content)
2929
{
3030
return new ModuleNode(
31-
new ConstantExpression($content, 0),
31+
new BodyNode([new ConstantExpression($content, 0)]),
3232
null,
3333
new ArrayExpression([], 0),
3434
new ArrayExpression([], 0),

0 commit comments

Comments
 (0)