Fixed : fatal error when using defined test on an invalid expression

This commit is contained in:
Jerome Brissonnet
2013-04-08 22:43:53 +02:00
parent ceadaa68af
commit e28522812a
+1 -1
View File
@@ -34,7 +34,7 @@ class Twig_Node_Expression_Test_Defined extends Twig_Node_Expression_Test
$this->changeIgnoreStrictCheck($node);
} else {
throw new Twig_Error_Syntax('The "defined" test only works with simple variables', $this->getLine(), $compiler->getFilename());
throw new Twig_Error_Syntax('The "defined" test only works with simple variables', $this->getLine());
}
}