fix psalm

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2024-02-08 10:44:19 +01:00
parent b0c57ed65f
commit 686e2683ed

View 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;
}