]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(files): Adjust Cache::searchQuery() parameter name to match interface backport/47954/stable29 47958/head
authorprovokateurin <kate@provokateurin.de>
Fri, 13 Sep 2024 16:13:44 +0000 (18:13 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 13 Sep 2024 20:12:49 +0000 (20:12 +0000)
Signed-off-by: provokateurin <kate@provokateurin.de>
lib/private/Files/Cache/Cache.php
lib/private/Files/Cache/Wrapper/CacheWrapper.php

index de55cc24812c9dc188bf97b8b903cef3b55bbf23..7f52935489d86628db7d44622cf9128d0523fd8c 100644 (file)
@@ -882,8 +882,8 @@ class Cache implements ICache {
                return $this->searchQuery(new SearchQuery($operator, 0, 0, [], null));
        }
 
-       public function searchQuery(ISearchQuery $searchQuery) {
-               return current($this->querySearchHelper->searchInCaches($searchQuery, [$this]));
+       public function searchQuery(ISearchQuery $query) {
+               return current($this->querySearchHelper->searchInCaches($query, [$this]));
        }
 
        /**
index 1662c76a6b8b139a2bf82b0ae914d13c231a5600..962ac6544f4cd52feb0e3ddaced0e40bdebf0ba4 100644 (file)
@@ -236,8 +236,8 @@ class CacheWrapper extends Cache {
                return $this->getCache()->getStatus($file);
        }
 
-       public function searchQuery(ISearchQuery $searchQuery) {
-               return current($this->querySearchHelper->searchInCaches($searchQuery, [$this]));
+       public function searchQuery(ISearchQuery $query) {
+               return current($this->querySearchHelper->searchInCaches($query, [$this]));
        }
 
        /**