Skip to content

Commit c462ee9

Browse files
jbraudtaylorotwell
authored andcommitted
[5.4] Check Htmlable contract instead of instanceof HtmlString in Mailer (#18459)
* Check Htmlable contract instead of instanceof HtmlString in Mailer * Update Mailer.php
1 parent b2b1f99 commit c462ee9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Mail/Mailer.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
use Swift_Message;
77
use Illuminate\Support\Arr;
88
use InvalidArgumentException;
9-
use Illuminate\Support\HtmlString;
109
use Illuminate\Contracts\View\Factory;
10+
use Illuminate\Contracts\Support\Htmlable;
1111
use Illuminate\Contracts\Events\Dispatcher;
1212
use Illuminate\Contracts\Queue\ShouldQueue;
1313
use Illuminate\Contracts\Mail\Mailer as MailerContract;
@@ -294,7 +294,7 @@ protected function addContent($message, $view, $plain, $raw, $data)
294294
*/
295295
protected function renderView($view, $data)
296296
{
297-
return $view instanceof HtmlString
297+
return $view instanceof Htmlable
298298
? $view->toHtml()
299299
: $this->views->make($view, $data)->render();
300300
}

0 commit comments

Comments
 (0)