From 08a056cf31a2bc5a53187c3e1af7699282d5246e Mon Sep 17 00:00:00 2001 From: nikic <+@ni-po.com> Date: Fri, 31 Dec 2010 17:27:32 +0100 Subject: [PATCH] fix wrong error message --- lib/Twig/Lexer.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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')); } } -- 1.7.2.5