1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00

more type hints

This commit is contained in:
Robin Appelman 2017-07-30 16:08:25 +02:00
commit 807c8c9a26
7 changed files with 23 additions and 21 deletions

View file

@ -117,7 +117,7 @@ class Parser {
*
* @return string The converted 64bit numeric SteamID
*/
public function convertSteamIdToCommunityId($steamId) {
public function convertSteamIdToCommunityId(string $steamId): string {
if ($steamId === 'STEAM_ID_LAN' || $steamId === 'BOT') {
throw new \InvalidArgumentException("Cannot convert SteamID \"$steamId\" to a community ID.");
}