diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php index 63121c079b..a8fd934934 100644 --- a/lib/private/App/AppStore/Fetcher/AppFetcher.php +++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php @@ -133,9 +133,11 @@ class AppFetcher extends Fetcher { /** * @param string $version + * @param string $filename */ - public function setVersion($version) { + public function setVersion(string $version, string $fileName = 'apps.json') { parent::setVersion($version); + $this->fileName = $fileName; $this->setEndpoint(); } } diff --git a/lib/private/App/AppStore/Fetcher/Fetcher.php b/lib/private/App/AppStore/Fetcher/Fetcher.php index 4dbc360c0c..172584c522 100644 --- a/lib/private/App/AppStore/Fetcher/Fetcher.php +++ b/lib/private/App/AppStore/Fetcher/Fetcher.php @@ -194,7 +194,7 @@ abstract class Fetcher { * Set the current Nextcloud version * @param string $version */ - public function setVersion($version) { + public function setVersion(string $version) { $this->version = $version; } }