Server: add typehint to addPlayer()

This commit is contained in:
Dylan K. Taylor 2018-02-17 19:54:56 +00:00
parent 6954bfac4b
commit eeaf75ac85

View File

@ -2317,7 +2317,7 @@ class Server{
unset($this->loggedInPlayers[$player->getRawUniqueId()]);
}
public function addPlayer($identifier, Player $player){
public function addPlayer(string $identifier, Player $player){
$this->players[$identifier] = $player;
$this->identifiers[spl_object_hash($player)] = $identifier;
}