mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-13 05:46:42 +00:00
fixed Parser contract for some implementations
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
namespace Twig\TokenParser;
|
||||
|
||||
use Twig\Error\SyntaxError;
|
||||
use Twig\Node\Node;
|
||||
use Twig\Token;
|
||||
|
||||
/**
|
||||
@@ -38,6 +39,8 @@ class ExtendsTokenParser extends AbstractTokenParser
|
||||
$this->parser->setParent($this->parser->getExpressionParser()->parseExpression());
|
||||
|
||||
$stream->expect(Token::BLOCK_END_TYPE);
|
||||
|
||||
return new Node();
|
||||
}
|
||||
|
||||
public function getTag()
|
||||
|
||||
Reference in New Issue
Block a user