Merge branch '3.x' into 4.x

* 3.x:
  Replace `return; yield` with `yield from []`
  Fix testExtensionsAreNotInitializedWhenRenderingACompiledTemplate
  Fix MacroTest
This commit is contained in:
Fabien Potencier
2024-09-03 13:55:51 +02:00
8 changed files with 47 additions and 22 deletions
+1 -1
View File
@@ -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))')
;