From 7e9f94233a24bfd3299cba11c11d9a1a126147e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Thu, 28 Mar 2024 10:14:56 +0100 Subject: [PATCH] fix: Compatibility with php 7.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Service/FilesAppService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Service/FilesAppService.php b/lib/Service/FilesAppService.php index 80b82ee65..9a46a4536 100644 --- a/lib/Service/FilesAppService.php +++ b/lib/Service/FilesAppService.php @@ -187,7 +187,7 @@ class FilesAppService implements IAttachmentService, ICustomAttachmentService { $userFolder = $this->rootFolder->getUserFolder($this->userId); try { $folder = $userFolder->get($this->configService->getAttachmentFolder()); - } catch (NotFoundException) { + } catch (NotFoundException $e) { $folder = $userFolder->newFolder($this->configService->getAttachmentFolder()); }