mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-10 22:05:44 +00:00
Deprecate the fact that the extends and use tags are always allowed in a sandboxed template
This commit is contained in:
@@ -22,14 +22,14 @@ use Twig\Compiler;
|
||||
#[YieldReady]
|
||||
class WithNode extends Node
|
||||
{
|
||||
public function __construct(Node $body, ?Node $variables, bool $only, int $lineno, ?string $tag = null)
|
||||
public function __construct(Node $body, ?Node $variables, bool $only, int $lineno)
|
||||
{
|
||||
$nodes = ['body' => $body];
|
||||
if (null !== $variables) {
|
||||
$nodes['variables'] = $variables;
|
||||
}
|
||||
|
||||
parent::__construct($nodes, ['only' => $only], $lineno, $tag);
|
||||
parent::__construct($nodes, ['only' => $only], $lineno);
|
||||
}
|
||||
|
||||
public function compile(Compiler $compiler): void
|
||||
|
||||
Reference in New Issue
Block a user