From 61a2a3f743463e9c37b4f9c527389169ca69192a Mon Sep 17 00:00:00 2001 From: Niels Vanpachtenbeke <10651054+Nielsvanpach@users.noreply.github.com> Date: Mon, 21 Oct 2024 15:39:58 +0200 Subject: [PATCH] add isset check --- src/Config/NotificationsConfig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Config/NotificationsConfig.php b/src/Config/NotificationsConfig.php index a0c80215..64fdb744 100644 --- a/src/Config/NotificationsConfig.php +++ b/src/Config/NotificationsConfig.php @@ -33,7 +33,7 @@ public static function fromArray(array $data): self notifiable: $data['notifiable'], mail: NotificationMailConfig::fromArray($data['mail']), slack: NotificationSlackConfig::fromArray($data['slack']), - discord: $data['discord'] ? NotificationDiscordConfig::fromArray($data['discord']) : null, + discord: isset($data['discord']) ? NotificationDiscordConfig::fromArray($data['discord']) : null, ); } }