diff --git a/services/MessagingService.php b/services/MessagingService.php index cf0372f..0ad787d 100644 --- a/services/MessagingService.php +++ b/services/MessagingService.php @@ -35,7 +35,7 @@ public function processNotification(BaseNotification $baseNotification, User $us ); } - public function processMessage(User $user, string $title, string $body, ?string $url, ?string $imageUrl, ?int $notificationCount) + public function processMessage(User $user, ?string $title, ?string $body, ?string $url, ?string $imageUrl, ?int $notificationCount) { foreach ($this->drivers as $driver) { $tokens = (new TokenService())->getTokensForUser($user, $driver); @@ -43,7 +43,7 @@ public function processMessage(User $user, string $title, string $body, ?string continue; } - $driver->processCloudMessage($tokens, $title, $body, $url, $imageUrl, $notificationCount); + $driver->processCloudMessage($tokens, (string) $title, (string) $body, $url, $imageUrl, $notificationCount); } }