diff --git a/lib/PhpParser/Lexer.php b/lib/PhpParser/Lexer.php index 182bfd5..59655a8 100644 --- a/lib/PhpParser/Lexer.php +++ b/lib/PhpParser/Lexer.php @@ -194,6 +194,11 @@ class Lexer } } + // HHVM uses a special token for numbers that overflow to double + if (defined('T_ONUMBER')) { + $tokenMap[T_ONUMBER] = Parser::T_DNUMBER; + } + return $tokenMap; } }