From 686e2683ed5bf240eaf8ae711c0ec9bf802adb09 Mon Sep 17 00:00:00 2001 From: Simon L Date: Thu, 8 Feb 2024 10:44:19 +0100 Subject: [PATCH] fix psalm Signed-off-by: Simon L --- apps/settings/lib/Settings/Personal/ServerDevNotice.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/settings/lib/Settings/Personal/ServerDevNotice.php b/apps/settings/lib/Settings/Personal/ServerDevNotice.php index 5d31eda65d22c..8ff68b4063f84 100644 --- a/apps/settings/lib/Settings/Personal/ServerDevNotice.php +++ b/apps/settings/lib/Settings/Personal/ServerDevNotice.php @@ -80,6 +80,9 @@ public function getForm(): TemplateResponse { // If the Reasons to use Nextcloud.pdf file is here, let's init Viewer, also check that Viewer is there if (class_exists(LoadViewer::class) && $userFolder->nodeExists('Reasons to use Nextcloud.pdf')) { + /** + * @psalm-suppress UndefinedClass, InvalidArgument + */ $this->eventDispatcher->dispatch(LoadViewer::class, new LoadViewer()); $hasInitialState = true; }