mirror of
https://github.com/twigphp/Twig.git
synced 2026-08-30 20:16:45 +00:00
Fix tests
This commit is contained in:
@@ -55,7 +55,7 @@ EOF
|
||||
public function block_foo(array \$context, array \$blocks = []): iterable
|
||||
{
|
||||
\$macros = \$this->macros;
|
||||
return; yield '';
|
||||
yield from [];
|
||||
}
|
||||
EOF
|
||||
, new Environment(new ArrayLoader()),
|
||||
|
||||
@@ -79,10 +79,10 @@ public function macro_foo(\$__foo__ = null, \$__bar__ = "Foo", ...\$__varargs__)
|
||||
|
||||
\$blocks = [];
|
||||
|
||||
return ('' === \$tmp = \\Twig\\Extension\\CoreExtension::captureOutput((function () use (&\$context, \$macros, \$blocks) {
|
||||
return ('' === \$tmp = implode('', iterator_to_array((function () use (&\$context, \$macros, \$blocks) {
|
||||
yield "foo";
|
||||
yield from [];
|
||||
})())) ? '' : new Markup(\$tmp, \$this->env->getCharset());
|
||||
})()))) ? '' : new Markup(\$tmp, \$this->env->getCharset());
|
||||
}
|
||||
EOF
|
||||
, new Environment(new ArrayLoader(), ['use_yield' => false]),
|
||||
|
||||
Reference in New Issue
Block a user