From d367983c0c3300941e38e73241981e84759ba3f4 Mon Sep 17 00:00:00 2001 From: Olle Haerstedt Date: Thu, 4 Oct 2018 16:06:02 +0200 Subject: [PATCH] Dev: Wrong return type at missing version fetchers --- application/libraries/ExtensionInstaller/PluginUpdater.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/application/libraries/ExtensionInstaller/PluginUpdater.php b/application/libraries/ExtensionInstaller/PluginUpdater.php index 732d08cb457..b416f8864b5 100644 --- a/application/libraries/ExtensionInstaller/PluginUpdater.php +++ b/application/libraries/ExtensionInstaller/PluginUpdater.php @@ -43,7 +43,8 @@ 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() { @@ -51,7 +52,7 @@ public function getAvailableUpdates() if (empty($this->versionFetchers)) { // No fetchers, can't fetch remote version. - return []; + return [$this->model->name, 'plugin', []]; } $allowUnstable = getGlobalSetting('allow_unstable_extension_update');