Remove the new yield nodes

This commit is contained in:
Fabien Potencier
2024-01-05 19:12:23 +01:00
parent 3b6cbf98d8
commit 15879406c8
22 changed files with 61 additions and 213 deletions
+2 -2
View File
@@ -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