From 90d3032924820b7af928deb6654cbfe6c25d582b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 7 Jun 2020 16:33:31 +0200 Subject: [PATCH] Fixed PHPStan issues. --- src/EventSubscriber/UserSystem/LoginSuccessSubscriber.php | 2 +- .../UserSystem/PasswordChangeNeededSubscriber.php | 2 +- src/EventSubscriber/UserSystem/RegisterU2FSubscriber.php | 2 +- src/Services/Attachments/AttachmentSubmitHandler.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/EventSubscriber/UserSystem/LoginSuccessSubscriber.php b/src/EventSubscriber/UserSystem/LoginSuccessSubscriber.php index 6c05379a..e93b4712 100644 --- a/src/EventSubscriber/UserSystem/LoginSuccessSubscriber.php +++ b/src/EventSubscriber/UserSystem/LoginSuccessSubscriber.php @@ -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; diff --git a/src/EventSubscriber/UserSystem/PasswordChangeNeededSubscriber.php b/src/EventSubscriber/UserSystem/PasswordChangeNeededSubscriber.php index fea87081..f501f96c 100644 --- a/src/EventSubscriber/UserSystem/PasswordChangeNeededSubscriber.php +++ b/src/EventSubscriber/UserSystem/PasswordChangeNeededSubscriber.php @@ -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; } diff --git a/src/EventSubscriber/UserSystem/RegisterU2FSubscriber.php b/src/EventSubscriber/UserSystem/RegisterU2FSubscriber.php index c34bc533..f8e78f8e 100644 --- a/src/EventSubscriber/UserSystem/RegisterU2FSubscriber.php +++ b/src/EventSubscriber/UserSystem/RegisterU2FSubscriber.php @@ -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; } diff --git a/src/Services/Attachments/AttachmentSubmitHandler.php b/src/Services/Attachments/AttachmentSubmitHandler.php index b6a9ffe0..66dabc81 100644 --- a/src/Services/Attachments/AttachmentSubmitHandler.php +++ b/src/Services/Attachments/AttachmentSubmitHandler.php @@ -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 */