fix wrong error message
authornikic <+@ni-po.com>
Fri, 31 Dec 2010 16:27:32 +0000 (17:27 +0100)
committerFabien Potencier <fabien.potencier@gmail.com>
Sun, 2 Jan 2011 10:01:33 +0000 (11:01 +0100)
lib/Twig/Lexer.php

index 1e3e794..f0a1ab5 100644 (file)
@@ -202,7 +202,7 @@ class Twig_Lexer implements Twig_LexerInterface
             $this->moveCursor($match[0]);
 
             if ($this->cursor >= $this->end) {
-                throw new Twig_Error_Syntax('Unexpected end of file: Unclosed ' . $this->state === self::STATE_BLOCK ? 'block' : 'variable');
+                throw new Twig_Error_Syntax('Unexpected end of file: Unclosed ' . ($this->state === self::STATE_BLOCK ? 'block' : 'variable'));
             }
         }