mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
ci: adjust return annotation to older psalm version
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
5ca35c9007
commit
2930f890d6
3 changed files with 4 additions and 1 deletions
|
|
@ -196,7 +196,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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ class SystemTagsInFilesDetector {
|
|||
}
|
||||
|
||||
$query = new SearchQuery($operator, $limit, $offset, []);
|
||||
/** @var \OCP\Files\Cache\ICache[] $caches */
|
||||
[$caches, ] = $this->searchHelper->getCachesAndMountPointsForSearch(
|
||||
$this->getRootFolder($folder),
|
||||
$folder->getPath(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue