diff --git a/lib/Files/Util.php b/lib/Files/Util.php index 2dfc15eb57..e5b9c61d11 100644 --- a/lib/Files/Util.php +++ b/lib/Files/Util.php @@ -67,7 +67,7 @@ class Util { if (!$node->getStorage()->instanceOfStorage(SharedStorage::class)) { // The file is not a shared file, // let's check the accesslist for mount points of groupfolders and external storages - $mountsForFile = $this->userMountCache->getMountsForFileId((int) $fileId); + $mountsForFile = $this->userMountCache->getMountsForFileId($fileId); $affectedUserIds = array_map(function (ICachedMountInfo $mount) { return $mount->getUser()->getUID(); }, $mountsForFile); diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index 7aea94863f..abdde0391d 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -181,7 +181,8 @@ - + + $fileId SharedStorage::class