Apply typehints to more general pocketmine\network namespace

This commit is contained in:
Dylan K. Taylor
2018-07-05 13:36:23 +01:00
parent 950465d283
commit 2907de81ad
10 changed files with 46 additions and 46 deletions

View File

@ -82,7 +82,7 @@ class RCON{
$this->server->getLogger()->info("RCON running on $addr:$port");
}
public function stop(){
public function stop() : void{
$this->instance->close();
socket_write($this->ipcMainSocket, "\x00"); //make select() return
Server::microSleep(50000);
@ -93,7 +93,7 @@ class RCON{
@socket_close($this->ipcThreadSocket);
}
public function check(){
public function check() : void{
$response = new RemoteConsoleCommandSender();
$command = $this->instance->cmd;

View File

@ -102,11 +102,11 @@ class RCONInstance extends Thread{
return true;
}
public function close(){
public function close() : void{
$this->stop = true;
}
public function run(){
public function run() : void{
$this->registerClassLoader();
/** @var resource[] $clients */