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
@@ -41,7 +41,7 @@ public function block_foo(array \$context, array \$blocks = []): iterable
{
\$macros = \$this->macros;
yield "foo";
return; yield '';
yield from [];
}
EOF
, new Environment(new ArrayLoader()),