mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: webhook_dsn can be an empty array
This commit is contained in:
@@ -133,8 +133,9 @@ final readonly class ProcessDomainTriggerHandler
|
||||
*/
|
||||
private function sendChatNotification(WatchList $watchList, ChatNotificationInterface $notification): void
|
||||
{
|
||||
if (null !== $watchList->getWebhookDsn()) {
|
||||
foreach ($watchList->getWebhookDsn() as $dsnString) {
|
||||
$webhookDsn = $watchList->getWebhookDsn();
|
||||
if (null !== $webhookDsn && 0 !== count($webhookDsn)) {
|
||||
foreach ($webhookDsn as $dsnString) {
|
||||
$dsn = new Dsn($dsnString);
|
||||
|
||||
$scheme = $dsn->getScheme();
|
||||
|
||||
Reference in New Issue
Block a user