diff --git a/apps/updatenotification/lib/Notification/BackgroundJob.php b/apps/updatenotification/lib/Notification/BackgroundJob.php index 08142d5b00bcc..285903d398bf2 100644 --- a/apps/updatenotification/lib/Notification/BackgroundJob.php +++ b/apps/updatenotification/lib/Notification/BackgroundJob.php @@ -118,7 +118,7 @@ protected function sendErrorNotifications($numDays) { ->setSubject('connection_error', ['days' => $numDays]); foreach ($this->getUsersToNotify() as $uid) { - $notification->setUser($uid); + $notification->setUser((string) $uid); $this->notificationManager->notify($notification); } } catch (\InvalidArgumentException $e) { @@ -186,7 +186,7 @@ protected function createNotifications($app, $version, $visibleVersion = '') { } foreach ($this->getUsersToNotify() as $uid) { - $notification->setUser($uid); + $notification->setUser((string) $uid); $this->notificationManager->notify($notification); } } catch (\InvalidArgumentException $e) {