Skip to content

Commit

Permalink
add isset check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nielsvanpach committed Oct 21, 2024
1 parent 71acc60 commit 61a2a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config/NotificationsConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
}

0 comments on commit 61a2a3f

Please sign in to comment.