Fixed PHPStan issues.

This commit is contained in:
Jan Böhmer 2020-06-07 16:33:31 +02:00
parent b3a459bdc0
commit 90d3032924
4 changed files with 4 additions and 4 deletions

View file

@ -64,8 +64,8 @@ final class LoginSuccessSubscriber implements EventSubscriberInterface
public function __construct(TranslatorInterface $translator, SessionInterface $session, EventLogger $eventLogger, bool $gpdr_compliance)
{
$this->translator = $translator;
/** @var Session $session */
$this->translator = $translator;
$this->flashBag = $session->getFlashBag();
$this->eventLogger = $eventLogger;
$this->gpdr_compliance = $gpdr_compliance;

View file

@ -81,8 +81,8 @@ final class PasswordChangeNeededSubscriber implements EventSubscriberInterface
public function __construct(Security $security, SessionInterface $session, HttpUtils $httpUtils)
{
$this->security = $security;
/** @var Session $session */
$this->security = $security;
$this->flashBag = $session->getFlashBag();
$this->httpUtils = $httpUtils;
}

View file

@ -78,10 +78,10 @@ final class RegisterU2FSubscriber implements EventSubscriberInterface
public function __construct(UrlGeneratorInterface $router, EntityManagerInterface $entityManager, SessionInterface $session, EventDispatcherInterface $eventDispatcher, bool $demo_mode)
{
/** @var Session $session */
$this->router = $router;
$this->em = $entityManager;
$this->demo_mode = $demo_mode;
/** @var Session $session */
$this->flashBag = $session->getFlashBag();
$this->eventDispatcher = $eventDispatcher;
}

View file

@ -114,7 +114,7 @@ class AttachmentSubmitHandler
/**
* Check if the extension of the uploaded file is allowed for the given attachment type.
* Returns true, if the file is allowed, false if not.
* @param Attachment $attachment
* @param AttachmentType $attachment_type
* @param UploadedFile $uploadedFile
* @return bool
*/