mirror of
https://github.com/danog/PHP-Parser.git
synced 2025-01-20 12:46:47 +01:00
Support HHVM T_ONUMBER token
This commit is contained in:
parent
66fd29cb58
commit
99df8b86ae
@ -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;
|
return $tokenMap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user