From 2be5ab5769a3fb7631bcc8f69cba0cc59ff7bfe7 Mon Sep 17 00:00:00 2001 From: Nate Wright Date: Thu, 24 Aug 2023 14:08:02 +0100 Subject: [PATCH] pkp/pkp-lib#9253 Fix type error in announcement helper function --- pages/announcement/AnnouncementHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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');