From f0e90435199d8a64322873047390bf166f0db2ca Mon Sep 17 00:00:00 2001 From: Jonathan Treffler Date: Tue, 17 Sep 2024 19:40:56 +0200 Subject: [PATCH] Update lib/Listener/CalendarListener.php Co-authored-by: Richard Steinmetz --- lib/Listener/CalendarListener.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Listener/CalendarListener.php b/lib/Listener/CalendarListener.php index 59f78a3..9c21e23 100644 --- a/lib/Listener/CalendarListener.php +++ b/lib/Listener/CalendarListener.php @@ -60,7 +60,7 @@ class CalendarListener implements IEventListener { $collectionName = $event->getCalendarData()['uri']; $subscriptions = $this->subscriptionService->findAll($collectionName); - $notificationPromises = (function () use ($collectionName, $subscriptions): Generator { + $notificationPromises = (function () use ($collectionName, $subscriptions): \Generator { foreach($subscriptions as $subscription) { $transport = $this->transportManager->getTransport($subscription->getTransport()); yield $transport->notify($subscription->getUserId(), $collectionName, $subscription->getId());