Skip to content

Commit a792f62

Browse files
committed
wip
1 parent d278dad commit a792f62

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

packages/mailer/src/EmailToSymfonyEmailMapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function map(mixed $from, mixed $to): SymfonyEmail
9292
$symfonyEmail->attach(
9393
body: ($attachment->resolve)(),
9494
name: $attachment->name,
95-
contentType: $attachment->contentType
95+
contentType: $attachment->contentType,
9696
);
9797
}
9898

packages/mailer/src/Testing/TestingMailer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
use Tempest\EventBus\EventBus;
66
use Tempest\Mail\Email;
7-
use Tempest\Mail\EmailWasSent;
87
use Tempest\Mail\EmailToSymfonyEmailMapper;
8+
use Tempest\Mail\EmailWasSent;
99
use Tempest\Mail\Mailer;
1010
use Tempest\Mail\MailerConfig;
1111
use Tempest\View\ViewRenderer;

tests/Integration/Mailer/Fixtures/SendWelcomeEmail.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Tempest\Mail\Email;
66
use Tempest\Mail\Envelope;
77
use Tempest\View\View;
8+
89
use function Tempest\view;
910

1011
final class SendWelcomeEmail implements Email

tests/Integration/Mailer/SentEmailTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,13 @@ private function sendTestEmail(
196196
null|string|View $html = null,
197197
?string $text = null,
198198
array $attachments = [],
199-
): SentTestingEmail
200-
{
199+
): SentTestingEmail {
201200
$content = match (true) {
202201
$html instanceof View => $html,
203202
$html !== null => <<<HTML_WRAP
204203
<html>
205204
<body>
206-
<h1>$html</h1>
205+
<h1>{$html}</h1>
207206
</body>
208207
</html>
209208
HTML_WRAP,

0 commit comments

Comments
 (0)