attributes = $attributes; $this->value = $value; } public function getSubNodeNames(): array { return ['value']; } /** * Constructs an LNumber node from a string number literal. * * @param string $str String number literal (decimal, octal, hex or binary) * @param array $attributes Additional attributes * @param bool $allowInvalidOctal Whether to allow invalid octal numbers (PHP 5) * * @return LNumber The constructed LNumber, including kind attribute */ public static function fromString(string $str, array $attributes = [], bool $allowInvalidOctal = false): LNumber { $attributes['rawValue'] = $str; $str = str_replace('_', '', $str); if ('0' !== $str[0] || '0' === $str) { $attributes['kind'] = LNumber::KIND_DEC; return new LNumber((int) $str, $attributes); } if ('x' === $str[1] || 'X' === $str[1]) { $attributes['kind'] = LNumber::KIND_HEX; return new LNumber(hexdec($str), $attributes); } if ('b' === $str[1] || 'B' === $str[1]) { $attributes['kind'] = LNumber::KIND_BIN; return new LNumber(bindec($str), $attributes); } if (!$allowInvalidOctal && strpbrk($str, '89')) { throw new Error('Invalid numeric literal', $attributes); } // Strip optional explicit octal prefix. if ('o' === $str[1] || 'O' === $str[1]) { $str = substr($str, 2); } // use intval instead of octdec to get proper cutting behavior with malformed numbers $attributes['kind'] = LNumber::KIND_OCT; return new LNumber(intval($str, 8), $attributes); } public function getType(): string { return 'Scalar_LNumber'; } } __halt_compiler();----SIGNATURE:----OuKp9TgzQjmHUJL3q758IR4CzO/xpbD3MUlH5J3slMoVjYD5oWFOQWKQQNVLy5pgIQE5uKy4cZWPf4yY76m6V5NzA+BMAaHjyT9LVs2YzqpqNgv1qca1FmOJnyZ11D2SAYae6U3ObOMriKwBQ7+3WG0VSFH4fAh5XYCYO0DVAE0Hy1Gn6SuDp0Tdd9phRV0mopTnBgGAqbogf96r1ocaGYqSLmi02gWK6VT6CofpIbYL0xgfe50EpXksNINjEIxTIA+Wucc2zf+2v8XtIv9u0ez7JG6ybRdy67hLPMpiFzZigR5SeTYkHcDu2IOpFCq2CqaSJeNEO8cv5t9DO4EssUP4dTq/Ri2DEI4eQ7Xz6URfPSGPVqLJ9FFFmEEtt18htZdPUYkdaOhQ2gGKSCRJDxc59Gpm0gQNxLG7LSHwbBycAUn5afaW+bu5yjp4kJdqUK9gGuNo0ZRSIrJSjjdEyk8xrHMpabCbBjVzxLhGubl2iyKzOnQT+Ig5GOEuHoWO3VXeUucnyOd+8cxT53iJphk/giUtCApQFX3KZBSooyNUEXrYSKv/26Wk0tG7CaytdRTSns1heLWCcXrg2aJ+EkjKqYSGdLz8hw2STC2Olr/+Zr1jvEgBEcIamCmbIbZx31YnYXV5JAxDkYQNGaM1ryvWQ5gVceEJOQMM+x66WqM=----ATTACHMENT:----NzY1MDY2MDQ4NjY5MjM0OSAyOTY2ODAwNjQxODY0NTAyIDM2NTYxODk2ODU5NDQwNzc=