Skip to content

Commit

Permalink
Merge pull request #313 from danhanly/master
Browse files Browse the repository at this point in the history
Fix CSS Inlining when using embedded image using Laravel 10 or 9.
  • Loading branch information
DannyvdSluijs committed Sep 18, 2023
2 parents 5a08ba4 + 3e2e0c7 commit 47c41ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/CssInlinerPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ private function handleSymfonyEmail(Email $message): void

if ($body instanceof TextPart) {
$message->setBody($this->processPart($body));
} elseif ($body instanceof AlternativePart || $body instanceof MixedPart) {
} elseif ($body instanceof AbstractMultipartPart) {
$part_type = get_class($body);
$message->setBody(new $part_type(
...array_map(
Expand Down

0 comments on commit 47c41ed

Please sign in to comment.