Skip to content

Commit

Permalink
Dev: Wrong return type at missing version fetchers
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Oct 4, 2018
1 parent b6d36ea commit d367983
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/libraries/ExtensionInstaller/PluginUpdater.php
Expand Up @@ -43,15 +43,16 @@ public static function createUpdaters() : array
}

/**
* @return
* Fetch all new available version from each version fetcher.
* @return array [string $extensionName, string $extensionType, string[] $versions]
*/
public function getAvailableUpdates()
{
$this->setupVersionFetchers();

if (empty($this->versionFetchers)) {
// No fetchers, can't fetch remote version.
return [];
return [$this->model->name, 'plugin', []];
}

$allowUnstable = getGlobalSetting('allow_unstable_extension_update');
Expand Down

0 comments on commit d367983

Please sign in to comment.