From 7b3f0bf068958089c3ced94771a94ed45d721088 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 23 Jul 2024 19:01:27 +0200 Subject: [PATCH] fix: fix invalid optional parameter Signed-off-by: Robin Appelman --- lib/Service/ConfigService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/ConfigService.php b/lib/Service/ConfigService.php index 33022e38a..62bcffc2f 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -214,7 +214,7 @@ class ConfigService { return $this->config->getUserValue($userId ?? $this->getUserId(), 'deck', 'attachment_folder', '/Deck'); } - public function setAttachmentFolder(?string $userId, string $path): void { + public function setAttachmentFolder(string $userId, string $path): void { if ($userId === null && $this->getUserId() === null) { throw new NoPermissionException('Must be logged in get the attachment folder'); }