mirror of
https://github.com/twigphp/Twig.git
synced 2026-10-04 19:07:11 +00:00
Template runtime and block composition
This commit is contained in:
@@ -47,7 +47,7 @@ class BlockTest extends NodeTestCase
|
||||
*/
|
||||
public function block_foo(array \$context, array \$blocks = []): iterable
|
||||
{
|
||||
\$macros = \$this->macros;
|
||||
\$macros = null === \$this->macroImportSource ? \$this->macros : \$this->rebindMacroImports(\$this->macroImportSource->macros);
|
||||
yield "foo";
|
||||
yield from [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user