Skip to content

Commit faecb98

Browse files
committed
[Mailer] Added return types
1 parent 0fff957 commit faecb98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mailer.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ and create an :class:`Symfony\\Component\\Mime\\Email` object::
163163
namespace App\Controller;
164164

165165
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
166+
use Symfony\Component\HttpFoundation\Response;
166167
use Symfony\Component\Mailer\MailerInterface;
167168
use Symfony\Component\Mime\Email;
168169

@@ -171,7 +172,7 @@ and create an :class:`Symfony\\Component\\Mime\\Email` object::
171172
/**
172173
* @Route("/email")
173174
*/
174-
public function sendEmail(MailerInterface $mailer)
175+
public function sendEmail(MailerInterface $mailer): Response
175176
{
176177
$email = (new Email())
177178

0 commit comments

Comments
 (0)