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:
Dylan K. Taylor
2018-09-10 15:54:01 +01:00
parent d62e00cc74
commit 37190c9a65
11 changed files with 23 additions and 28 deletions

View File

@ -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()){