mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-17 17:25:15 +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:
@@ -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()),
|
||||
|
||||
Reference in New Issue
Block a user