From a2661e83b038c6e9b4ae39542f1c39e06b6e8389 Mon Sep 17 00:00:00 2001 From: Yuriy Bakhtin Date: Fri, 9 May 2025 16:46:50 +0200 Subject: [PATCH] Fix param type on process message --- services/MessagingService.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }