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