From: nikic <+@ni-po.com> Date: Mon, 20 Dec 2010 17:32:42 +0000 (+0100) Subject: change while(1) to while(true) X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=f1583ce353297b32d6b38d39fbfbc41c2c7851fb;p=web%2Fkonrad%2Ftwig.git change while(1) to while(true) --- diff --git a/lib/Twig/ExpressionParser.php b/lib/Twig/ExpressionParser.php index 2c7d8a3..3030494 100644 --- 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()) {