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