projects
/
web/konrad/twig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
59f45ba
)
change while(1) to while(true)
author
nikic
<+@ni-po.com>
Mon, 20 Dec 2010 17:32:42 +0000 (18:32 +0100)
committer
Fabien Potencier
<fabien.potencier@gmail.com>
Mon, 20 Dec 2010 18:01:23 +0000 (19:01 +0100)
lib/Twig/ExpressionParser.php
patch
|
blob
|
history
diff --git
a/lib/Twig/ExpressionParser.php
b/lib/Twig/ExpressionParser.php
index
2c7d8a3
..
3030494
100644
(file)
--- a/
lib/Twig/ExpressionParser.php
+++ b/
lib/Twig/ExpressionParser.php
@@
-209,7
+209,7
@@
class Twig_ExpressionParser
public function parsePostfixExpression($node)
{
- while (1) {
+ while (true) {
$token = $this->parser->getCurrentToken();
if ($token->getType() == Twig_Token::PUNCTUATION_TYPE) {
if ('.' == $token->getValue() || '[' == $token->getValue()) {