mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-28 12:40:08 +02:00
Fixed PHPStan issues.
This commit is contained in:
parent
b3a459bdc0
commit
90d3032924
4 changed files with 4 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue