Skip to content

Commit a24274e

Browse files
Seb33300Tob0t
authored andcommitted
Check if message is an MicrosoftTeamsMessage instance
1 parent a154bd6 commit a24274e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/MicrosoftTeamsChannel.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public function send($notifiable, Notification $notification)
3333
{
3434
$message = $notification->toMicrosoftTeams($notifiable);
3535

36+
if (! $message instanceof MicrosoftTeamsMessage) {
37+
return;
38+
}
39+
3640
// if the recipient is not defined get it from the notifiable object
3741
if ($message->toNotGiven()) {
3842
$to = $notifiable->routeNotificationFor('microsoftTeams', $notification);

0 commit comments

Comments
 (0)