@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | * |
57 | 57 | * @see withFrom() |
58 | 58 | */ |
59 | - public function getFrom(): array|string; |
|
59 | + public function getFrom(): array | string; |
|
60 | 60 | |
61 | 61 | /** |
62 | 62 | * Returns a new instance with the specified sender email address. |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * |
72 | 72 | * @psalm-param FromType $from |
73 | 73 | */ |
74 | - public function withFrom(array|string $from): self; |
|
74 | + public function withFrom(array | string $from): self; |
|
75 | 75 | |
76 | 76 | /** |
77 | 77 | * Returns the message recipient(s) email address. |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | * |
81 | 81 | * @see withTo() |
82 | 82 | */ |
83 | - public function getTo(): array|string; |
|
83 | + public function getTo(): array | string; |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Returns a new instance with the specified recipient(s) email address. |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | * This method MUST be implemented in such a way as to retain the immutability of the message, |
94 | 94 | * and MUST return an instance that has the new recipients email address. |
95 | 95 | */ |
96 | - public function withTo(array|string $to): self; |
|
96 | + public function withTo(array | string $to): self; |
|
97 | 97 | |
98 | 98 | /** |
99 | 99 | * Returns the reply-to address of this message. |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * |
103 | 103 | * @see withReplyTo() |
104 | 104 | */ |
105 | - public function getReplyTo(): array|string; |
|
105 | + public function getReplyTo(): array | string; |
|
106 | 106 | |
107 | 107 | /** |
108 | 108 | * Returns a new instance with the specified reply-to address. |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | * This method MUST be implemented in such a way as to retain the immutability of the message, |
116 | 116 | * and MUST return an instance that has the new reply-to address. |
117 | 117 | */ |
118 | - public function withReplyTo(array|string $replyTo): self; |
|
118 | + public function withReplyTo(array | string $replyTo): self; |
|
119 | 119 | |
120 | 120 | /** |
121 | 121 | * Returns the Cc (additional copy receiver) addresses of this message. |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | * |
125 | 125 | * @see withCc() |
126 | 126 | */ |
127 | - public function getCc(): array|string; |
|
127 | + public function getCc(): array | string; |
|
128 | 128 | |
129 | 129 | /** |
130 | 130 | * Returns a new instance with the specified Cc (additional copy receiver) addresses. |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | * This method MUST be implemented in such a way as to retain the immutability of the message, |
138 | 138 | * and MUST return an instance that has the new Cc (additional copy receiver) addresses. |
139 | 139 | */ |
140 | - public function withCc(array|string $cc): self; |
|
140 | + public function withCc(array | string $cc): self; |
|
141 | 141 | |
142 | 142 | /** |
143 | 143 | * Returns the Bcc (hidden copy receiver) addresses of this message. |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | * |
147 | 147 | * @see withBcc() |
148 | 148 | */ |
149 | - public function getBcc(): array|string; |
|
149 | + public function getBcc(): array | string; |
|
150 | 150 | |
151 | 151 | /** |
152 | 152 | * Returns a new instance with the specified Bcc (hidden copy receiver) addresses. |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * This method MUST be implemented in such a way as to retain the immutability of the message, |
160 | 160 | * and MUST return an instance that has the new Bcc (hidden copy receiver) addresses. |
161 | 161 | */ |
162 | - public function withBcc(array|string $bcc): self; |
|
162 | + public function withBcc(array | string $bcc): self; |
|
163 | 163 | |
164 | 164 | /** |
165 | 165 | * Returns the message subject. |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | * This method MUST be implemented in such a way as to retain the immutability of the message, |
336 | 336 | * and MUST return an instance that has the new custom header value. |
337 | 337 | */ |
338 | - public function withHeader(string $name, string|array $value): self; |
|
338 | + public function withHeader(string $name, string | array $value): self; |
|
339 | 339 | |
340 | 340 | /** |
341 | 341 | * Returns a new instance with the specified custom header values. |
@@ -33,7 +33,7 @@ |
||
33 | 33 | */ |
34 | 34 | public function __construct( |
35 | 35 | string $class, |
36 | - private array|string|null $from = null, |
|
36 | + private array | string | null $from = null, |
|
37 | 37 | ) { |
38 | 38 | if (!is_subclass_of($class, MessageInterface::class)) { |
39 | 39 | throw new InvalidArgumentException(sprintf( |