mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-07 18:32:55 +00:00
Added some missing typehints
This commit is contained in:
@ -70,7 +70,7 @@ class QueryHandler{
|
||||
$this->token = random_bytes(16);
|
||||
}
|
||||
|
||||
public static function getTokenString($token, $salt){
|
||||
public static function getTokenString(string $token, string $salt) : int{
|
||||
return Binary::readInt(substr(hash("sha512", $salt . ":" . $token, true), 7, 4));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user