Skip to content

Commit 61a2a3f

Browse files
committedOct 21, 2024·
add isset check
·
9.3.49.1.3
1 parent 71acc60 commit 61a2a3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Config/NotificationsConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public static function fromArray(array $data): self
3333
notifiable: $data['notifiable'],
3434
mail: NotificationMailConfig::fromArray($data['mail']),
3535
slack: NotificationSlackConfig::fromArray($data['slack']),
36-
discord: $data['discord'] ? NotificationDiscordConfig::fromArray($data['discord']) : null,
36+
discord: isset($data['discord']) ? NotificationDiscordConfig::fromArray($data['discord']) : null,
3737
);
3838
}
3939
}

0 commit comments

Comments
 (0)
Please sign in to comment.