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
@@ -56,7 +56,7 @@ EOF
// line 1
\$context["foo"] = ('' === \$tmp = implode('', iterator_to_array((function () use (&\$context, \$macros, \$blocks) {
yield "foo";
return; yield '';
yield from [];
})(), false))) ? '' : new Markup(\$tmp, \$this->env->getCharset());
EOF
, new Environment(new ArrayLoader()),