mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-24 13:36:27 +00:00
Ensure PrintNode is yielding string content
This commit is contained in:
committed by
Fabien Potencier
parent
4cc1afe067
commit
86840f9351
@@ -36,7 +36,7 @@ class PrintNode extends Node implements NodeOutputInterface, CoercesChildrenToSt
|
||||
|
||||
$compiler
|
||||
->addDebugInfo($this)
|
||||
->write($expr->isGenerator() ? 'yield from ' : 'yield ')
|
||||
->write($expr->isGenerator() ? 'yield from ' : 'yield (string) ')
|
||||
->subcompile($expr)
|
||||
->raw(";\n")
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user