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());