diff --git a/pages/announcement/AnnouncementHandler.php b/pages/announcement/AnnouncementHandler.php index 5b2ff2f28e1..ce0b7e064b5 100644 --- a/pages/announcement/AnnouncementHandler.php +++ b/pages/announcement/AnnouncementHandler.php @@ -109,7 +109,7 @@ protected function isAnnouncementsEnabled(Request $request): bool return $contextOrSite->getData('enableAnnouncements'); } - protected function getAnnouncementsIntro(Request $request): string + protected function getAnnouncementsIntro(Request $request): ?string { $contextOrSite = $request->getContext() ?? $request->getSite(); return $contextOrSite->getLocalizedData('announcementsIntroduction');