Skip to content

Commit 870b60e

Browse files
Merge pull request #4158 from nextcloud/backport/4157/stable32
2 parents 33888f2 + 1e9f91e commit 870b60e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Mount/FolderStorageManager.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function initRootAndStorageForFolder(int $folderId, bool $separateStorage
6060
}
6161

6262
/**
63-
* @param 'files'|'trash'|'versions' $type
63+
* @param 'files'|'trash'|'versions'|'' $type
6464
*/
6565
public function getBaseStorageForFolder(
6666
int $folderId,
@@ -80,7 +80,7 @@ public function getBaseStorageForFolder(
8080
}
8181

8282
/**
83-
* @param 'files'|'trash'|'versions' $type
83+
* @param 'files'|'trash'|'versions'|'' $type
8484
*/
8585
private function getBaseStorageForFolderSeparate(
8686
int $folderId,
@@ -182,7 +182,7 @@ private function getBaseStorageForFolderSeparateStorageObject(
182182
}
183183

184184
/**
185-
* @param 'files'|'trash'|'versions' $type
185+
* @param 'files'|'trash'|'versions'|'' $type
186186
*/
187187
private function getBaseStorageForFolderRootJail(
188188
int $folderId,
@@ -251,7 +251,7 @@ private function getBaseStorageForFolderRootJail(
251251
}
252252

253253
public function deleteStoragesForFolder(FolderDefinition $folder): void {
254-
foreach (['files', 'trash', 'versions'] as $type) {
254+
foreach (['files', 'trash', 'versions', ''] as $type) {
255255
$storage = $this->getBaseStorageForFolder($folder->id, $folder->useSeparateStorage(), $folder, null, false, $type);
256256
/** @var Cache $cache */
257257
$cache = $storage->getCache();

0 commit comments

Comments
 (0)