mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-24 09:08:38 +00:00
Remove the new yield nodes
This commit is contained in:
@@ -18,7 +18,7 @@ use Twig\Extension\SandboxExtension;
|
||||
use Twig\Extension\StringLoaderExtension;
|
||||
use Twig\Node\Expression\ConstantExpression;
|
||||
use Twig\Node\Node;
|
||||
use Twig\Node\YieldExpressionNode;
|
||||
use Twig\Node\PrintNode;
|
||||
use Twig\Sandbox\SecurityPolicy;
|
||||
use Twig\Test\IntegrationTestCase;
|
||||
use Twig\Token;
|
||||
@@ -135,7 +135,7 @@ class TwigTestTokenParser_§ extends AbstractTokenParser
|
||||
{
|
||||
$this->parser->getStream()->expect(Token::BLOCK_END_TYPE);
|
||||
|
||||
return new YieldExpressionNode(new ConstantExpression('§', -1), -1);
|
||||
return new PrintNode(new ConstantExpression('§', -1), -1);
|
||||
}
|
||||
|
||||
public function getTag(): string
|
||||
|
||||
Reference in New Issue
Block a user