mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-11 04:17:48 +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;
|
protected $server;
|
||||||
/** @var string */
|
/** @var string */
|
||||||
protected $endpoint;
|
protected $endpoint;
|
||||||
/** @var array|null */
|
/* @var mixed[]|null */
|
||||||
protected $updateInfo = null;
|
protected $updateInfo = null;
|
||||||
/** @var VersionString|null */
|
/** @var VersionString|null */
|
||||||
protected $newVersion;
|
protected $newVersion;
|
||||||
@ -58,6 +58,8 @@ class AutoUpdater{
|
|||||||
/**
|
/**
|
||||||
* Callback used at the end of the update checking task
|
* Callback used at the end of the update checking task
|
||||||
*
|
*
|
||||||
|
* @param mixed[] $updateInfo
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function checkUpdateCallback(array $updateInfo){
|
public function checkUpdateCallback(array $updateInfo){
|
||||||
@ -132,6 +134,8 @@ class AutoUpdater{
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
* @param string[] $lines
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
protected function printConsoleMessage(array $lines, string $logLevel = \LogLevel::INFO){
|
protected function printConsoleMessage(array $lines, string $logLevel = \LogLevel::INFO){
|
||||||
@ -148,7 +152,7 @@ class AutoUpdater{
|
|||||||
/**
|
/**
|
||||||
* Returns the last retrieved update data.
|
* Returns the last retrieved update data.
|
||||||
*
|
*
|
||||||
* @return array|null
|
* @return mixed[]|null
|
||||||
*/
|
*/
|
||||||
public function getUpdateInfo(){
|
public function getUpdateInfo(){
|
||||||
return $this->updateInfo;
|
return $this->updateInfo;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user