mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-18 01:35:25 +00:00
Merge branch '3.x' into 4.x
* 3.x: Replace `return; yield` with `yield from []` Fix testExtensionsAreNotInitializedWhenRenderingACompiledTemplate Fix MacroTest
This commit is contained in:
@@ -36,7 +36,7 @@ class CaptureNode extends Node
|
||||
->raw("(function () use (&\$context, \$macros, \$blocks) {\n")
|
||||
->indent()
|
||||
->subcompile($this->getNode('body'))
|
||||
->write("return; yield '';\n")
|
||||
->write("yield from [];\n")
|
||||
->outdent()
|
||||
->write('})(), false))')
|
||||
;
|
||||
|
||||
Reference in New Issue
Block a user