diff --git a/src/lib/SubscriptionResolver/ConfigBasedSubscriptionResolver.php b/src/lib/SubscriptionResolver/ConfigBasedSubscriptionResolver.php index 46592c3..6cdaabc 100644 --- a/src/lib/SubscriptionResolver/ConfigBasedSubscriptionResolver.php +++ b/src/lib/SubscriptionResolver/ConfigBasedSubscriptionResolver.php @@ -27,7 +27,7 @@ public function resolve(NotificationInterface $notification, array $context = [] $notificationType = $notification->getType(); if (!array_key_exists($notificationType, $config)) { - yield; + return; } foreach ($config[$notificationType]['channels'] as $channel) {