Skip to content

Commit

Permalink
Use Address::create instead of constructor.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsegura authored and core23 committed Jul 5, 2023
1 parent 615ed54 commit a1858ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mailer/SimpleRegistrationMailer.php
Expand Up @@ -60,7 +60,7 @@ public function sendConfirmationEmailMessage(UserInterface $user): void
;

if (null !== $this->fromEmail) {
$mail->from(new Address($this->fromEmail));
$mail->from(Address::create($this->fromEmail));
}

$this->mailer->send($mail);
Expand Down

0 comments on commit a1858ae

Please sign in to comment.