Fixed PHPStan issue.

This commit is contained in:
Jan Böhmer 2020-06-01 18:21:50 +02:00
parent 1b06203ca6
commit 7de2137370
2 changed files with 4 additions and 0 deletions

View file

@ -45,6 +45,7 @@ namespace App\EventSubscriber\UserSystem;
use App\Entity\UserSystem\User;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface;
use Symfony\Component\HttpFoundation\Session\Session;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\HttpKernel\Event\RequestEvent;
use Symfony\Component\HttpKernel\KernelEvents;
@ -81,6 +82,7 @@ final class PasswordChangeNeededSubscriber implements EventSubscriberInterface
public function __construct(Security $security, SessionInterface $session, HttpUtils $httpUtils)
{
$this->security = $security;
/** @var $session Session */
$this->flashBag = $session->getFlashBag();
$this->httpUtils = $httpUtils;
}