fixed a notice in a unit test

This commit is contained in:
Fabien Potencier
2011-01-07 17:28:00 +01:00
parent 05a12f0820
commit 8da408339b
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -713,6 +713,7 @@ class Twig_Environment
if (null === $this->functions) {
$this->loadFunctions();
}
$this->functions[$name] = $function;
}
+1 -1
View File
@@ -95,7 +95,7 @@ class Twig_TemplateTest extends Twig_Template
{
}
public function getAttribute($object, $item, array $arguments = array(), $type = Twig_Node_Expression_GetAttr::TYPE_ANY, $noStrictCheck = false)
public function getAttribute($object, $item, array $arguments = array(), $type = Twig_Node_Expression_GetAttr::TYPE_ANY, $noStrictCheck = false, $lineno = -1)
{
return parent::getAttribute($object, $item, $arguments, $type);
}