Skip to content

Commit 137c51b

Browse files
committed
style: apply fixes from qa
1 parent e81d8d1 commit 137c51b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

packages/mailer/src/Address.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
use Stringable;
66

7-
final class Address implements Stringable
7+
final readonly class Address implements Stringable
88
{
99
public function __construct(
10-
public readonly string $email,
11-
public readonly ?string $name = null,
10+
public string $email,
11+
public ?string $name = null,
1212
) {}
1313

1414
public function __toString(): string

packages/mailer/src/Attachments/DataAttachment.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
/**
88
* Represents an attachment that leaves in the local filesystem.
99
*/
10-
final class DataAttachment implements Attachment
10+
final readonly class DataAttachment implements Attachment
1111
{
1212
private function __construct(
13-
public readonly Closure $resolve,
14-
public readonly ?string $name,
15-
public readonly ?string $contentType,
13+
public Closure $resolve,
14+
public ?string $name,
15+
public ?string $contentType,
1616
) {}
1717

1818
/**

packages/mailer/src/Content.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ final class Content
1414
public function __construct(
1515
public null|string|View $html = null,
1616
public ?string $text = null,
17-
/** @var Tempest\Mail\Attachments\Attachment[] */
17+
/** @var Attachment[] */
1818
public array $attachments = [],
1919
) {
2020
if (! $text && ! $html) {

tests/Integration/Mailer/MailerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
namespace Tests\Tempest\Integration\Mailer;
44

5+
use Tempest\Mail\Attachments\StorageAttachment;
56
use Tempest\Mail\Content;
67
use Tempest\Mail\Envelope;
78
use Tempest\Mail\Exceptions\MissingExpeditorAddressException;
89
use Tempest\Mail\Exceptions\MissingRecipientAddressException;
910
use Tempest\Mail\GenericEmail;
1011
use Tempest\Mail\Mailer;
11-
use Tempest\Mail\Attachments\StorageAttachment;
1212
use Tempest\Mail\Transports\Smtp\Scheme;
1313
use Tempest\Mail\Transports\Smtp\SmtpMailerConfig;
1414
use Tests\Tempest\Integration\FrameworkIntegrationTestCase;

0 commit comments

Comments
 (0)