From f1817dc82b5745c264a541c53ae2c2df3c68dc1d Mon Sep 17 00:00:00 2001 From: provokateurin Date: Fri, 13 Sep 2024 18:13:44 +0200 Subject: [PATCH] fix(files): Adjust Cache::searchQuery() parameter name to match interface Signed-off-by: provokateurin --- lib/private/Files/Cache/Cache.php | 4 ++-- lib/private/Files/Cache/Wrapper/CacheWrapper.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index de55cc24812c9..7f52935489d86 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -882,8 +882,8 @@ public function searchByMime($mimetype) { 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])); } /** diff --git a/lib/private/Files/Cache/Wrapper/CacheWrapper.php b/lib/private/Files/Cache/Wrapper/CacheWrapper.php index 1662c76a6b8b1..962ac6544f4cd 100644 --- a/lib/private/Files/Cache/Wrapper/CacheWrapper.php +++ b/lib/private/Files/Cache/Wrapper/CacheWrapper.php @@ -236,8 +236,8 @@ public function getStatus($file) { 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])); } /**