mirror of
https://github.com/wallabag/wallabag.git
synced 2025-10-05 19:31:02 +00:00
Clean PHPStan baseline
This commit is contained in:
parent
0d93add058
commit
e63d473032
17 changed files with 73 additions and 85 deletions
|
@ -8,6 +8,7 @@ use Symfony\Component\Mailer\MailerInterface;
|
|||
use Symfony\Component\Mime\Address;
|
||||
use Symfony\Component\Mime\Email;
|
||||
use Twig\Environment;
|
||||
use Wallabag\Entity\User;
|
||||
|
||||
/**
|
||||
* Custom mailer for TwoFactorBundle email.
|
||||
|
@ -69,6 +70,8 @@ class AuthCodeMailer implements AuthCodeMailerInterface
|
|||
*/
|
||||
public function sendAuthCode(TwoFactorInterface $user): void
|
||||
{
|
||||
\assert($user instanceof User);
|
||||
|
||||
$template = $this->twig->load('TwoFactor/email_auth_code.html.twig');
|
||||
|
||||
$subject = $template->renderBlock('subject', []);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue