]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix psalm 43455/head
authorSimon L <szaimen@e.mail.de>
Thu, 8 Feb 2024 09:44:19 +0000 (10:44 +0100)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Thu, 8 Feb 2024 13:39:48 +0000 (13:39 +0000)
Signed-off-by: Simon L <szaimen@e.mail.de>
apps/settings/lib/Settings/Personal/ServerDevNotice.php

index 8e08b2c8c7f3d9f709c020bb0e8ee908473b4a78..3f1be7432d017f83b4f92bd855a77f97e411d723 100644 (file)
@@ -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;
                }