From 86c8584cf0e011477dfba215117c21d1dd8e3189 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 8e08b2c8c7f..3f1be7432d0 100644 --- a/apps/settings/lib/Settings/Personal/ServerDevNotice.php +++ b/apps/settings/lib/Settings/Personal/ServerDevNotice.php @@ -80,6 +80,9 @@ class ServerDevNotice implements ISettings { // 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; } -- 2.39.5