Revert "rector: arrrrr"

This reverts commit 16c0cd10d8.
This commit is contained in:
Andras Bacsai
2025-01-07 15:31:43 +01:00
parent da07b4fdcf
commit 1fe4dd722b
349 changed files with 3689 additions and 4184 deletions

View File

@@ -9,16 +9,16 @@ use Illuminate\Support\Facades\Mail;
class EmailChannel
{
public function send(SendsEmail $sendsEmail, Notification $notification): void
public function send(SendsEmail $notifiable, Notification $notification): void
{
try {
$this->bootConfigs($sendsEmail);
$recipients = $sendsEmail->getRecipients($notification);
$this->bootConfigs($notifiable);
$recipients = $notifiable->getRecipients($notification);
if (count($recipients) === 0) {
throw new Exception('No email recipients found');
}
$mailMessage = $notification->toMail($sendsEmail);
$mailMessage = $notification->toMail($notifiable);
Mail::send(
[],
[],