From b43bff89ee7f28f4c8292da2ba863ae3aead814b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my?= Date: Wed, 14 Dec 2022 16:33:07 +0100 Subject: [PATCH] Fix notification format url (#85) --- src/Dto/Notification.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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, }; } }