Skip to content

Commit

Permalink
[10.x] Fix notifications being counted as sent without a "shouldSend"…
Browse files Browse the repository at this point in the history
… method (#49030)

* [10.x] Fix notifications being counted as sent without a "shouldSend" method

* Fix style issue
  • Loading branch information
joelwmale authored Nov 17, 2023
1 parent d9c328c commit 4bc11bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Support/Testing/Fakes/NotificationFake.php
Original file line number Diff line number Diff line change
Expand Up @@ -306,10 +306,10 @@ public function sendNow($notifiables, $notification, array $channels = null)
$notifiableChannels,
fn ($channel) => $notification->shouldSend($notifiable, $channel) !== false
);
}

if (empty($notifiableChannels)) {
continue;
}
if (empty($notifiableChannels)) {
continue;
}

$this->notifications[get_class($notifiable)][$notifiable->getKey()][get_class($notification)][] = [
Expand Down

0 comments on commit 4bc11bb

Please sign in to comment.