Merge branch '3.x' into 4.x

* 3.x:
  Fix RawFilter
This commit is contained in:
Fabien Potencier
2024-08-14 23:43:34 +02:00
+1 -1
View File
@@ -25,7 +25,7 @@ class RawFilter extends FilterExpression
#[FirstClassTwigCallableReady]
public function __construct(Node $node, TwigFilter|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