Fix RawFilter

This commit is contained in:
Fabien Potencier
2024-08-14 23:42:25 +02:00
parent fb96eed2c6
commit 397b7c4782
+1 -1
View File
@@ -26,7 +26,7 @@ class RawFilter extends FilterExpression
#[FirstClassTwigCallableReady]
public function __construct(Node $node, TwigFilter|ConstantExpression|null $filter = null, ?Node $arguments = null, int $lineno = 0, ?string $tag = null)
{
parent::__construct($node, $filter ?: new TwigFilter('raw'), $arguments ?: new Node(), $lineno ?: $node->getTemplateLine(), $tag ?: $node->getNodeTag());
parent::__construct($node, $filter ?: new TwigFilter('raw', null, ['is_safe' => ['all']]), $arguments ?: new Node(), $lineno ?: $node->getTemplateLine(), $tag ?: $node->getNodeTag());
}
public function compile(Compiler $compiler): void