mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-09-06 09:56:06 +00:00
Apply typehints to all AsyncTask methods
Since we're breaking API here anyway, no point in holding back on this.
This commit is contained in:
@ -42,7 +42,7 @@ class UpdateCheckTask extends AsyncTask{
|
||||
$this->channel = $channel;
|
||||
}
|
||||
|
||||
public function onRun(){
|
||||
public function onRun() : void{
|
||||
$error = "";
|
||||
$response = Internet::getURL($this->endpoint . "?channel=" . $this->channel, 4, [], $error);
|
||||
$this->error = $error;
|
||||
@ -70,7 +70,7 @@ class UpdateCheckTask extends AsyncTask{
|
||||
}
|
||||
}
|
||||
|
||||
public function onCompletion(){
|
||||
public function onCompletion() : void{
|
||||
/** @var AutoUpdater $updater */
|
||||
$updater = $this->fetchLocal();
|
||||
if($this->hasResult()){
|
||||
|
Reference in New Issue
Block a user