From: nikic <+@ni-po.com> Date: Fri, 31 Dec 2010 16:27:32 +0000 (+0100) Subject: fix wrong error message X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=08a056cf31a2bc5a53187c3e1af7699282d5246e;p=web%2Fkonrad%2Ftwig.git fix wrong error message --- diff --git a/lib/Twig/Lexer.php b/lib/Twig/Lexer.php index 1e3e794..f0a1ab5 100644 --- a/lib/Twig/Lexer.php +++ b/lib/Twig/Lexer.php @@ -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')); } }