mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 01:46:04 +00:00
and more typehints
This commit is contained in:
@ -294,7 +294,7 @@ class ServerScheduler{
|
||||
return $this->handle(new TaskHandler(get_class($task), $task, $this->nextId(), $delay, $period));
|
||||
}
|
||||
|
||||
private function handle(TaskHandler $handler){
|
||||
private function handle(TaskHandler $handler) : TaskHandler{
|
||||
if($handler->isDelayed()){
|
||||
$nextRun = $this->currentTick + $handler->getDelay();
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user