mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-22 08:44:01 +00:00
populate missing array value types in updater namespace
This commit is contained in:
parent
92a752053d
commit
60b405d944
@ -41,7 +41,7 @@ class AutoUpdater{
|
||||
protected $server;
|
||||
/** @var string */
|
||||
protected $endpoint;
|
||||
/** @var array|null */
|
||||
/* @var mixed[]|null */
|
||||
protected $updateInfo = null;
|
||||
/** @var VersionString|null */
|
||||
protected $newVersion;
|
||||
@ -58,6 +58,8 @@ class AutoUpdater{
|
||||
/**
|
||||
* Callback used at the end of the update checking task
|
||||
*
|
||||
* @param mixed[] $updateInfo
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function checkUpdateCallback(array $updateInfo){
|
||||
@ -132,6 +134,8 @@ class AutoUpdater{
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string[] $lines
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function printConsoleMessage(array $lines, string $logLevel = \LogLevel::INFO){
|
||||
@ -148,7 +152,7 @@ class AutoUpdater{
|
||||
/**
|
||||
* Returns the last retrieved update data.
|
||||
*
|
||||
* @return array|null
|
||||
* @return mixed[]|null
|
||||
*/
|
||||
public function getUpdateInfo(){
|
||||
return $this->updateInfo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user