We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de6ca85 commit 107b5deCopy full SHA for 107b5de
src/Messaging/Mail/MailBag.php
@@ -182,17 +182,25 @@ public function getFromName(): string
182
/**
183
* @return string
184
*/
185
- public function getReplyToEmail(): string
+ public function getReplyToEmail(): ?string
186
{
187
- return $this->replyTo->getEmail();
+ if ($this->replyTo) {
188
+ return $this->replyTo->getEmail();
189
+ }
190
+
191
+ return null;
192
}
193
194
195
196
- public function getReplyToName(): string
197
+ public function getReplyToName(): ?string
198
- return $this->replyTo->getName();
199
200
+ return $this->replyTo->getName();
201
202
203
204
205
206
0 commit comments