From f38be0a169590ca4b8e766c617253b01917558dd Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 29 Aug 2025 17:59:16 +0200 Subject: [PATCH] fix: cast fileid to string in getMountsForFileId Signed-off-by: Robin Appelman --- lib/private/Files/Config/UserMountCache.php | 1 + 1 file changed, 1 insertion(+) 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) {