Skip to content

Commit

Permalink
pkp#9253 Fix type error in announcement helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Aug 28, 2023
1 parent 638f4af commit 2be5ab5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/announcement/AnnouncementHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 2be5ab5

Please sign in to comment.