mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 15:41:33 +00:00
Rename AutoUpdater -> UpdateChecker
This commit is contained in:
@@ -39,7 +39,7 @@ class UpdateCheckTask extends AsyncTask{
|
||||
/** @var string */
|
||||
private $error = "Unknown error";
|
||||
|
||||
public function __construct(AutoUpdater $updater, string $endpoint, string $channel){
|
||||
public function __construct(UpdateChecker $updater, string $endpoint, string $channel){
|
||||
$this->storeLocal(self::TLS_KEY_UPDATER, $updater);
|
||||
$this->endpoint = $endpoint;
|
||||
$this->channel = $channel;
|
||||
@@ -74,7 +74,7 @@ class UpdateCheckTask extends AsyncTask{
|
||||
}
|
||||
|
||||
public function onCompletion() : void{
|
||||
/** @var AutoUpdater $updater */
|
||||
/** @var UpdateChecker $updater */
|
||||
$updater = $this->fetchLocal(self::TLS_KEY_UPDATER);
|
||||
if($this->hasResult()){
|
||||
/** @var UpdateInfo $response */
|
||||
|
Reference in New Issue
Block a user