diff options
author | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-06-03 01:19:15 +0200 |
---|---|---|
committer | Arthur Schiwon <blizzz@arthur-schiwon.de> | 2023-06-21 16:53:13 +0200 |
commit | eb50b6c6aaaf0557b4b59648e24611e1b67a24bb (patch) | |
tree | 40edfc38c80a9ff6715f0448dd9c9f7b2c35ef36 /lib/private/Files/Cache/QuerySearchHelper.php | |
parent | a17d01951fdf72a37036fe67cba4009b03b5723e (diff) | |
download | nextcloud-server-eb50b6c6aaaf0557b4b59648e24611e1b67a24bb.tar.gz nextcloud-server-eb50b6c6aaaf0557b4b59648e24611e1b67a24bb.zip |
fix: expect interface, not a specific implementation
- fixes a regression when deleting folders while music app was enabled,
for a LazyRoot was passed to this method.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Files/Cache/QuerySearchHelper.php')
-rw-r--r-- | lib/private/Files/Cache/QuerySearchHelper.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/private/Files/Cache/QuerySearchHelper.php b/lib/private/Files/Cache/QuerySearchHelper.php index 30b3c7225ac..52663213b16 100644 --- a/lib/private/Files/Cache/QuerySearchHelper.php +++ b/lib/private/Files/Cache/QuerySearchHelper.php @@ -26,15 +26,14 @@ namespace OC\Files\Cache; use OC\Files\Cache\Wrapper\CacheJail; -use OC\Files\Node\Root; use OC\Files\Search\QueryOptimizer\QueryOptimizer; use OC\Files\Search\SearchBinaryOperator; use OC\SystemConfig; use OCP\DB\QueryBuilder\IQueryBuilder; use OCP\Files\Cache\ICache; use OCP\Files\Cache\ICacheEntry; -use OCP\Files\Folder; use OCP\Files\IMimeTypeLoader; +use OCP\Files\IRootFolder; use OCP\Files\Mount\IMountPoint; use OCP\Files\Search\ISearchBinaryOperator; use OCP\Files\Search\ISearchQuery; @@ -198,7 +197,7 @@ class QuerySearchHelper { /** * @return array{array<string, ICache>, array<string, IMountPoint>} */ - public function getCachesAndMountPointsForSearch(Root $root, string $path, bool $limitToHome = false): array { + public function getCachesAndMountPointsForSearch(IRootFolder $root, string $path, bool $limitToHome = false): array { $rootLength = strlen($path); $mount = $root->getMount($path); $storage = $mount->getStorage(); |