Skip to content

Commit

Permalink
Relax return type on getNotificationMessage to allow form validation …
Browse files Browse the repository at this point in the history
…errors
  • Loading branch information
asmecher committed Aug 2, 2024
1 parent 014854c commit b842894
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getNotificationTitle(Notification $notification): string
/**
* @copydoc PKPNotificationOperationManager::getNotificationMessage()
*/
public function getNotificationMessage(PKPRequest $request, Notification $notification): ?string
public function getNotificationMessage(PKPRequest $request, Notification $notification): string|array|null
{
return match ($notification->type) {
Notification::NOTIFICATION_TYPE_FORMAT_NEEDS_APPROVED_SUBMISSION => __('notification.type.formatNeedsApprovedSubmission'),
Expand Down

0 comments on commit b842894

Please sign in to comment.