function ExplicitOctalEmulator::resolveIntegerOrFloatToken
1 call to ExplicitOctalEmulator::resolveIntegerOrFloatToken()
- ExplicitOctalEmulator::emulate in vendor/
nikic/ php-parser/ lib/ PhpParser/ Lexer/ TokenEmulator/ ExplicitOctalEmulator.php
File
-
vendor/
nikic/ php-parser/ lib/ PhpParser/ Lexer/ TokenEmulator/ ExplicitOctalEmulator.php, line 34
Class
Namespace
PhpParser\Lexer\TokenEmulatorCode
private function resolveIntegerOrFloatToken(string $str) : int {
$str = substr($str, 1);
$str = str_replace('_', '', $str);
$num = octdec($str);
return is_float($num) ? \T_DNUMBER : \T_LNUMBER;
}