From d8b0e651ad67b412e310940a4d505fa07f70d007 Mon Sep 17 00:00:00 2001 From: Somebodyisnobody <35230554+Somebodyisnobody@users.noreply.github.com> Date: Sat, 11 Jul 2026 09:29:38 +0200 Subject: [PATCH] fix: broken upload of attachment via api fixes an issue raised in 5cf486150ab297c166ccd4cdead2294890be713a as `$data` is not required but was marked as required. Signed-off-by: Somebodyisnobody <35230554+Somebodyisnobody@users.noreply.github.com> --- lib/Controller/AttachmentApiController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Controller/AttachmentApiController.php b/lib/Controller/AttachmentApiController.php index 7ece834331..d8a35db59b 100644 --- a/lib/Controller/AttachmentApiController.php +++ b/lib/Controller/AttachmentApiController.php @@ -47,7 +47,7 @@ public function display(int $cardId, int $attachmentId, string $type = 'deck_fil #[NoAdminRequired] #[CORS] #[NoCSRFRequired] - public function create(int $cardId, string $type, string $data): DataResponse { + public function create(int $cardId, string $type, ?string $data): DataResponse { $attachment = $this->attachmentService->create($cardId, $type, $data); return new DataResponse($attachment, HTTP::STATUS_OK); }