mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 03:46:39 +00:00
change while(1) to while(true)
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user