mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-24 20:53:46 +00:00
Template runtime and block composition
This commit is contained in:
@@ -37,7 +37,7 @@ class BlockNode extends Node
|
||||
->write(" */\n")
|
||||
->write(\sprintf("public function block_%s(array \$context, array \$blocks = []): iterable\n", $this->getAttribute('name')), "{\n")
|
||||
->indent()
|
||||
->write("\$macros = \$this->macros;\n")
|
||||
->write("\$macros = null === \$this->macroImportSource ? \$this->macros : \$this->rebindMacroImports(\$this->macroImportSource->macros);\n")
|
||||
;
|
||||
|
||||
$compiler
|
||||
|
||||
Reference in New Issue
Block a user