projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8fee70e
)
fix wrong error message
author
nikic
<+@ni-po.com>
Fri, 31 Dec 2010 16:27:32 +0000 (17:27 +0100)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Sun, 2 Jan 2011 10:01:33 +0000 (11:01 +0100)
lib/Twig/Lexer.php
patch
|
blob
|
history
diff --git
a/lib/Twig/Lexer.php
b/lib/Twig/Lexer.php
index
1e3e794
..
f0a1ab5
100644
(file)
--- 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'));
}
}