From 2bb54961ba378f6dbd321cf001fe8ac2d52f402f Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Fri, 9 Jan 2026 10:35:57 +0100 Subject: [PATCH 1/2] chore(deps): Bump nextcloud/ocp Signed-off-by: Louis Chmn --- composer.lock | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.lock b/composer.lock index 28fd0c5ab..5581c36b0 100644 --- a/composer.lock +++ b/composer.lock @@ -437,12 +437,12 @@ "source": { "type": "git", "url": "https://github.com/nextcloud-deps/ocp.git", - "reference": "d42bd36d0413b881b7459b220e1328bc57e48b38" + "reference": "6c1e5686d00c40f57abd83e8ad268e9ab34825bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/d42bd36d0413b881b7459b220e1328bc57e48b38", - "reference": "d42bd36d0413b881b7459b220e1328bc57e48b38", + "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/6c1e5686d00c40f57abd83e8ad268e9ab34825bb", + "reference": "6c1e5686d00c40f57abd83e8ad268e9ab34825bb", "shasum": "" }, "require": { @@ -478,7 +478,7 @@ "issues": "https://github.com/nextcloud-deps/ocp/issues", "source": "https://github.com/nextcloud-deps/ocp/tree/master" }, - "time": "2025-12-11T00:55:32+00:00" + "time": "2026-01-09T00:57:54+00:00" }, { "name": "nikic/php-parser", From f74c339a03f61e3f9b45db60787d1501083e2f16 Mon Sep 17 00:00:00 2001 From: Louis Chmn Date: Fri, 9 Jan 2026 10:36:12 +0100 Subject: [PATCH 2/2] fix: Correct typing Signed-off-by: Louis Chmn --- lib/Controller/CardApiController.php | 4 ++-- lib/Service/FilesAppService.php | 2 +- lib/Sharing/DeckShareProvider.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/Controller/CardApiController.php b/lib/Controller/CardApiController.php index bc1359250..4a3187e01 100644 --- a/lib/Controller/CardApiController.php +++ b/lib/Controller/CardApiController.php @@ -72,11 +72,11 @@ public function create($title, $type = 'plain', $order = 999, $description = '', $card = $this->cardService->create($title, $this->request->getParam('stackId'), $type, $order, $this->userId, $description, $duedate); foreach ($labels as $labelId) { - $this->cardService->assignLabel($card->id, $labelId); + $this->cardService->assignLabel($card->getId(), $labelId); } foreach ($users as $user) { - $this->assignmentService->assignUser($card->id, $user['id'], $user['type']); + $this->assignmentService->assignUser($card->getId(), $user['id'], $user['type']); } return new DataResponse($card, HTTP::STATUS_OK); diff --git a/lib/Service/FilesAppService.php b/lib/Service/FilesAppService.php index 38f3cf373..dda58be0f 100644 --- a/lib/Service/FilesAppService.php +++ b/lib/Service/FilesAppService.php @@ -312,7 +312,7 @@ public function markAsDeleted(Attachment $attachment) { */ private function getShareForAttachment(Attachment $attachment): IShare { try { - $share = $this->shareProvider->getShareById($attachment->getId()); + $share = $this->shareProvider->getShareById((string)$attachment->getId()); } catch (ShareNotFound $e) { throw new NoPermissionException('No permission to access the attachment from the card'); } diff --git a/lib/Sharing/DeckShareProvider.php b/lib/Sharing/DeckShareProvider.php index ca0dbc5e7..ad705aa6f 100644 --- a/lib/Sharing/DeckShareProvider.php +++ b/lib/Sharing/DeckShareProvider.php @@ -419,7 +419,7 @@ public function restore(IShare $share, string $recipient): IShare { $qb->executeStatement(); - return $this->getShareById((int)$share->getId(), $recipient); + return $this->getShareById((string)$share->getId(), $recipient); } /**