diff --git a/apps/settings/lib/Listener/MailSettingsEventListener.php b/apps/settings/lib/Listener/MailSettingsEventListener.php index c03a81bcd928d..30874f9b21123 100644 --- a/apps/settings/lib/Listener/MailSettingsEventListener.php +++ b/apps/settings/lib/Listener/MailSettingsEventListener.php @@ -33,6 +33,7 @@ public function handle(Event $event): void { return; } + /** @var DeclarativeSettingsGetValueEvent|DeclarativeSettingsSetValueEvent $event */ if ($event->getApp() !== Application::APP_ID) { return; } @@ -49,7 +50,7 @@ public function handle(Event $event): void { } - private function handleRegister(Event $event) { + private function handleRegister(DeclarativeSettingsRegisterFormEvent $event): void { $event->registerSchema(Application::APP_ID, [ 'id' => 'mail-provider-support', @@ -82,7 +83,8 @@ private function handleRegister(Event $event) { } - private function handleGetValue(Event $event) { + + private function handleGetValue(DeclarativeSettingsGetValueEvent $event): void { $event->setValue( match($event->getFieldId()) { @@ -92,7 +94,7 @@ private function handleGetValue(Event $event) { } - private function handleSetValue(Event $event) { + private function handleSetValue(DeclarativeSettingsSetValueEvent $event): void { switch ($event->getFieldId()) { case 'mail_providers_disabled':