mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-10 12:06:46 +00:00
Deprecate the fact that the extends and use tags are always allowed in a sandboxed template
This commit is contained in:
@@ -63,7 +63,7 @@ final class UseTokenParser extends AbstractTokenParser
|
||||
|
||||
$this->parser->addTrait(new Node(['template' => $template, 'targets' => new Node($targets)]));
|
||||
|
||||
return new Node();
|
||||
return new Node([], [], $token->getLine());
|
||||
}
|
||||
|
||||
public function getTag(): string
|
||||
|
||||
Reference in New Issue
Block a user