From f3b704b56d19534fffc5e7c804e5a907531dd9da 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 f0d4a66e8..e214b7ca3 100644 --- a/lib/Service/FilesAppService.php +++ b/lib/Service/FilesAppService.php @@ -186,7 +186,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()); }