fix(files): Adjust Cache::searchQuery() parameter name to match interface

Signed-off-by: provokateurin <kate@provokateurin.de>
pull/47954/head
provokateurin 2 years ago
parent bcb4e781a4
commit 714671a8a6
No known key found for this signature in database
  1. 4
      lib/private/Files/Cache/Cache.php
  2. 4
      lib/private/Files/Cache/Wrapper/CacheWrapper.php

@ -873,8 +873,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]));
}
/**

@ -214,8 +214,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]));
}
/**

Loading…
Cancel
Save