Skip to content

Commit 1658b9a

Browse files
committed
Bugfix: Call to a member function getEmail() on string
1 parent c9bec29 commit 1658b9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Surfnet/StepupMiddleware/CommandHandlingBundle/Identity/Service/RegistrationMailService.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function sendRegistrationEmailWithRas(
127127
$message = new TemplatedEmail();
128128
$message
129129
->from(new Address($this->sender->getEmail(), $this->sender->getName()))
130-
->to(new Address($email->getEmail(), $commonName->getCommonName()))
130+
->to(new Address($email, $commonName))
131131
->subject($subject)
132132
->htmlTemplate('@SurfnetStepupMiddlewareCommandHandling/SecondFactorMailService/email.html.twig')
133133
->context($parameters);

0 commit comments

Comments
 (0)