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