This commit is contained in:
Fabien Potencier
2024-08-27 13:18:23 +02:00
parent 7e7808d56e
commit 41459e0ddb
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ final class ModuleNode extends Node
public function __construct(Node $body, ?AbstractExpression $parent, Node $blocks, Node $macros, Node $traits, $embeddedTemplates, Source $source)
{
if (!$body instanceof BodyNode) {
trigger_deprecation('twig/twig', '3.12', sprintf('Not passing a "%s" instance as the "body" argument of the "%s" constructor is deprecated.', BodyNode::class, static::class));
trigger_deprecation('twig/twig', '3.12', \sprintf('Not passing a "%s" instance as the "body" argument of the "%s" constructor is deprecated.', BodyNode::class, static::class));
}
$nodes = [