Skip to content

Commit

Permalink
#9253 Fix type error in announcement helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr authored and asmecher committed Nov 8, 2023
1 parent a9715a8 commit 45e1c67
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 45e1c67

Please sign in to comment.