diff --git a/lib/private/Files/Config/UserMountCache.php b/lib/private/Files/Config/UserMountCache.php index 7c2be4e80e86a..1bd964dc4e5ff 100644 --- a/lib/private/Files/Config/UserMountCache.php +++ b/lib/private/Files/Config/UserMountCache.php @@ -353,6 +353,7 @@ private function getCacheInfoFromFileId($fileId): array { * @since 9.0.0 */ public function getMountsForFileId($fileId, $user = null) { + $fileId = (int)$fileId; try { [$storageId, $internalPath] = $this->getCacheInfoFromFileId($fileId); } catch (NotFoundException $e) {