fix: fix invalid optional parameter

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman
2024-07-23 19:01:27 +02:00
parent 1bf3442e82
commit 7b3f0bf068

View File

@@ -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');
}