From d3d0b6ffc19a6a1f4b2ab75860acaca617aee62a Mon Sep 17 00:00:00 2001 From: Ege Kibar <58031957+egekibar@users.noreply.github.com> Date: Sun, 10 Nov 2024 12:23:24 +0300 Subject: [PATCH 1/2] Update Mailable.php --- src/Illuminate/Mail/Mailable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Illuminate/Mail/Mailable.php b/src/Illuminate/Mail/Mailable.php index b1ac21358009..d159ffef9e53 100644 --- a/src/Illuminate/Mail/Mailable.php +++ b/src/Illuminate/Mail/Mailable.php @@ -1694,6 +1694,7 @@ private function ensureEnvelopeIsHydrated() foreach (['to', 'cc', 'bcc', 'replyTo'] as $type) { foreach ($envelope->{$type} as $address) { + if (is_array($address)) $address = new \Illuminate\Mail\Mailables\Address(...$address); $this->{$type}($address->address, $address->name); } } From a6a749b7e2cac206ababfc9552412214e402a182 Mon Sep 17 00:00:00 2001 From: Ege Kibar <58031957+egekibar@users.noreply.github.com> Date: Sun, 10 Nov 2024 12:29:25 +0300 Subject: [PATCH 2/2] Update Mailable.php --- src/Illuminate/Mail/Mailable.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Illuminate/Mail/Mailable.php b/src/Illuminate/Mail/Mailable.php index d159ffef9e53..54949c19b085 100644 --- a/src/Illuminate/Mail/Mailable.php +++ b/src/Illuminate/Mail/Mailable.php @@ -1694,7 +1694,9 @@ private function ensureEnvelopeIsHydrated() foreach (['to', 'cc', 'bcc', 'replyTo'] as $type) { foreach ($envelope->{$type} as $address) { - if (is_array($address)) $address = new \Illuminate\Mail\Mailables\Address(...$address); + if (is_array($address)) { + $address = new \Illuminate\Mail\Mailables\Address(...$address); + } $this->{$type}($address->address, $address->name); } }