From f1583ce353297b32d6b38d39fbfbc41c2c7851fb Mon Sep 17 00:00:00 2001 From: nikic <+@ni-po.com> Date: Mon, 20 Dec 2010 18:32:42 +0100 Subject: [PATCH] change while(1) to while(true) --- lib/Twig/ExpressionParser.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) 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()) { -- 1.7.2.5