diff --git a/src/Dto/Notification.php b/src/Dto/Notification.php index 95f6aeb..797f853 100644 --- a/src/Dto/Notification.php +++ b/src/Dto/Notification.php @@ -100,9 +100,7 @@ private function formatUrl(NotificationType $type, string $url): string ['https://github.com/', '/pull/'], $url ), - default => throw new \InvalidArgumentException( - 'Unexpected match value for Notification Type:' . $type->value - ), + default => $url, }; } }