change while(1) to while(true)

This commit is contained in:
nikic
2010-12-20 18:32:42 +01:00
committed by Fabien Potencier
parent 59f45ba11d
commit f1583ce353
+1 -1
View File
@@ -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()) {