From d2c645f163491356ac19a061df20958377084e95 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 3 Sep 2021 16:35:10 +0200 Subject: [PATCH] Adjust token count in octal emulator --- lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php b/lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php index e1eb688..f5f6805 100644 --- a/lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php +++ b/lib/PhpParser/Lexer/TokenEmulator/ExplicitOctalEmulator.php @@ -23,6 +23,7 @@ class ExplicitOctalEmulator extends TokenEmulator { array_splice($tokens, $i, 2, [ [$tokenKind, '0' . $tokens[$i + 1][1], $tokens[$i][2]], ]); + $c--; } } return $tokens;