From 017fa30a4bf464502549ec04f303ac64a0b41e2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 24 Apr 2024 16:22:39 +0200 Subject: [PATCH] fix: Avoid optional before required parameter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- 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 b6fd00b75..ea303f3ac 100644 --- a/lib/Service/ConfigService.php +++ b/lib/Service/ConfigService.php @@ -231,7 +231,7 @@ public function getAttachmentFolder(string $userId = null): string { return $this->config->getUserValue($userId ?? $this->getUserId(), 'deck', 'attachment_folder', '/Deck'); } - public function setAttachmentFolder(?string $userId = null, 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'); }