populate missing array value types in updater namespace

This commit is contained in:
Dylan K. Taylor 2020-01-30 21:23:05 +00:00
parent 92a752053d
commit 60b405d944

View File

@ -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;