From e28522812a9050cc34f352a21da445409c25c78f Mon Sep 17 00:00:00 2001 From: Jerome Brissonnet Date: Mon, 8 Apr 2013 22:43:53 +0200 Subject: [PATCH] Fixed : fatal error when using defined test on an invalid expression --- lib/Twig/Node/Expression/Test/Defined.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Node/Expression/Test/Defined.php b/lib/Twig/Node/Expression/Test/Defined.php index 85b07f5..247b2e2 100644 --- a/lib/Twig/Node/Expression/Test/Defined.php +++ b/lib/Twig/Node/Expression/Test/Defined.php @@ -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()); } } -- 1.7.2.5