File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 44
55use 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
Original file line number Diff line number Diff line change 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 /**
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 22
33namespace Tests \Tempest \Integration \Mailer ;
44
5+ use Tempest \Mail \Attachments \StorageAttachment ;
56use Tempest \Mail \Content ;
67use Tempest \Mail \Envelope ;
78use Tempest \Mail \Exceptions \MissingExpeditorAddressException ;
89use Tempest \Mail \Exceptions \MissingRecipientAddressException ;
910use Tempest \Mail \GenericEmail ;
1011use Tempest \Mail \Mailer ;
11- use Tempest \Mail \Attachments \StorageAttachment ;
1212use Tempest \Mail \Transports \Smtp \Scheme ;
1313use Tempest \Mail \Transports \Smtp \SmtpMailerConfig ;
1414use Tests \Tempest \Integration \FrameworkIntegrationTestCase ;
You can’t perform that action at this time.
0 commit comments