diff --git a/lib/Hooks/FileListener.php b/lib/Hooks/FileListener.php index 25a6773b..a46b7e63 100644 --- a/lib/Hooks/FileListener.php +++ b/lib/Hooks/FileListener.php @@ -70,10 +70,7 @@ public function handle(Event $event): void { $node = $share->getNode(); $accessList = $this->shareManager->getAccessList($node, true, true); - /** - * @var string[] $userIds - */ - $userIds = array_keys($accessList['users']); + $userIds = array_map(fn ($id) => (string)$id, array_keys($accessList['users'])); if ($node->getType() === FileInfo::TYPE_FOLDER) { $mount = $node->getMountPoint();