mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-19 22:07:40 +00:00
Deprecate Environment::mergeGlobals()
This commit is contained in:
@@ -73,7 +73,7 @@ class MacroNode extends Node
|
||||
->write("{\n")
|
||||
->indent()
|
||||
->write("\$macros = \$this->macros;\n")
|
||||
->write("\$context = \$this->env->mergeGlobals([\n")
|
||||
->write("\$context = [\n")
|
||||
->indent()
|
||||
;
|
||||
|
||||
@@ -94,7 +94,7 @@ class MacroNode extends Node
|
||||
->raw(' => ')
|
||||
->raw("\$__varargs__,\n")
|
||||
->outdent()
|
||||
->write("]);\n\n")
|
||||
->write("] + \$this->env->getGlobals();\n\n")
|
||||
->write("\$blocks = [];\n\n")
|
||||
->write('return ')
|
||||
->subcompile($node)
|
||||
|
||||
Reference in New Issue
Block a user