mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-20 14:36:57 +00:00
fixed macros when using an argument named like a PHP super globa
This commit is contained in:
@@ -46,11 +46,11 @@ class Twig_Tests_Node_MacroTest extends Twig_Test_NodeTestCase
|
||||
return array(
|
||||
array($node, <<<EOF
|
||||
// line 1
|
||||
public function getfoo(\$_foo = null, \$_bar = "Foo")
|
||||
public function getfoo(\$__foo__ = null, \$__bar__ = "Foo")
|
||||
{
|
||||
\$context = \$this->env->mergeGlobals(array(
|
||||
"foo" => \$_foo,
|
||||
"bar" => \$_bar,
|
||||
"foo" => \$__foo__,
|
||||
"bar" => \$__bar__,
|
||||
));
|
||||
|
||||
\$blocks = array();
|
||||
|
||||
Reference in New Issue
Block a user