]> source.dussan.org Git - nextcloud-server.git/commitdiff
Make adjustments based on the psalm review
authorHamid Dehnavi <hamid.dev.pro@gmail.com>
Tue, 18 Jul 2023 08:35:20 +0000 (12:05 +0330)
committerJohn Molakvoæ <skjnldsv@users.noreply.github.com>
Fri, 23 Feb 2024 14:53:41 +0000 (15:53 +0100)
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
Co-authored-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
lib/private/App/AppStore/Fetcher/AppFetcher.php

index 7f98617d822c00196c65df7c82b03238fb353374..b899954a1750065087a02548f7af4a496642532b 100644 (file)
@@ -39,9 +39,6 @@ use OCP\Support\Subscription\IRegistry;
 use Psr\Log\LoggerInterface;
 
 class AppFetcher extends Fetcher {
-       /** @var IRegistry */
-       protected IRegistry $registry;
-
        /** @var bool */
        private $ignoreMaxVersion;
 
@@ -51,7 +48,8 @@ class AppFetcher extends Fetcher {
                IConfig $config,
                CompareVersion $compareVersion,
                LoggerInterface $logger,
-               IRegistry $registry) {
+               protected IRegistry $registry,
+       ) {
                parent::__construct(
                        $appDataFactory,
                        $clientService,
@@ -61,8 +59,6 @@ class AppFetcher extends Fetcher {
                        $registry
                );
 
-               $this->registry = $registry;
-
                $this->fileName = 'apps.json';
                $this->endpointName = 'apps.json';
                $this->ignoreMaxVersion = true;