Deprecate Environment::mergeGlobals()

This commit is contained in:
Fabien Potencier
2024-09-07 14:00:41 +02:00
parent e1b64b1937
commit b86575cfd6
8 changed files with 30 additions and 19 deletions
+2 -2
View File
@@ -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)