]> source.dussan.org Git - nextcloud-server.git/commitdiff
ci: adjust return annotation to older psalm version 38977/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Mon, 26 Jun 2023 15:07:21 +0000 (17:07 +0200)
committerArthur Schiwon <blizzz@arthur-schiwon.de>
Mon, 26 Jun 2023 15:07:21 +0000 (17:07 +0200)
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
lib/private/Files/Cache/QuerySearchHelper.php
lib/private/Files/Node/Folder.php
lib/private/SystemTag/SystemTagsInFilesDetector.php

index 75e203d5fd9598b6f8414a3beb40b4ff299766f4..7e18d4c5879b6c3480b9f96d5085958161edc6a2 100644 (file)
@@ -195,7 +195,7 @@ class QuerySearchHelper {
        }
 
        /**
-        * @return list{0?: array<array-key, ICache>, 1?: array<array-key, IMountPoint>}
+        * @return array{0?: array<array-key, ICache>, 1?: array<array-key, IMountPoint>}
         */
        public function getCachesAndMountPointsForSearch(IRootFolder $root, string $path, bool $limitToHome = false): array {
                $rootLength = strlen($path);
index 1f27185d8d9903a0807fe5a795cd767b305f422f..ccfddeaf3a43c171e15f7a6d9f6ef734295c6e1d 100644 (file)
@@ -230,6 +230,8 @@ class Folder extends Node implements \OCP\Files\Folder {
 
                /** @var QuerySearchHelper $searchHelper */
                $searchHelper = \OC::$server->get(QuerySearchHelper::class);
+               /** @var \OCP\Files\Cache\ICache[] $caches */
+               /** @var \OCP\Files\Mount\IMountPoint[] $mountByMountPoint */
                [$caches, $mountByMountPoint] = $searchHelper->getCachesAndMountPointsForSearch($this->root, $this->path, $limitToHome);
                $resultsPerCache = $searchHelper->searchInCaches($query, $caches);
 
index c9f26c58c0251a86c995c402d62cc84806557cc1..8887ae414d5f37596677dee83f9b0bf54ebc711b 100644 (file)
@@ -54,6 +54,7 @@ class SystemTagsInFilesDetector {
                }
 
                $query = new SearchQuery($operator, $limit, $offset, []);
+               /** @var \OCP\Files\Cache\ICache[] $caches */
                [$caches, ] = $this->searchHelper->getCachesAndMountPointsForSearch(
                        $this->getRootFolder($folder),
                        $folder->getPath(),