Fixed : fatal error when using defined test on an invalid expression
authorJerome Brissonnet <jibriss@gmail.com>
Mon, 8 Apr 2013 20:43:53 +0000 (22:43 +0200)
committerJerome Brissonnet <jibriss@gmail.com>
Mon, 8 Apr 2013 20:43:53 +0000 (22:43 +0200)
lib/Twig/Node/Expression/Test/Defined.php

index 85b07f5..247b2e2 100644 (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());
         }
     }