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 24, 2023
1 parent 6beaf2a commit 7518e9d
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 7518e9d

Please sign in to comment.