From db92247b65598cecb2fc405a009f138be5adfec4 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Thu, 10 Mar 2022 13:30:34 +0200 Subject: [PATCH] fix --- .../Espo/Core/Authentication/AuthToken/EspoManager.php | 8 +++++++- application/Espo/Core/Di/FieldUtilSetter.php | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/application/Espo/Core/Authentication/AuthToken/EspoManager.php b/application/Espo/Core/Authentication/AuthToken/EspoManager.php index c2621ad505..a697af0796 100644 --- a/application/Espo/Core/Authentication/AuthToken/EspoManager.php +++ b/application/Espo/Core/Authentication/AuthToken/EspoManager.php @@ -39,6 +39,9 @@ class EspoManager implements Manager { private EntityManager $entityManager; + /** + * @var RDBRepository + */ private RDBRepository $repository; private const TOKEN_RANDOM_LENGTH = 16; @@ -47,7 +50,10 @@ class EspoManager implements Manager { $this->entityManager = $entityManager; - $this->repository = $entityManager->getRDBRepository(AuthTokenEntity::ENTITY_TYPE); + /** @var RDBRepository */ + $repository = $entityManager->getRDBRepository(AuthTokenEntity::ENTITY_TYPE); + + $this->repository = $repository; } public function get(string $token): ?AuthToken diff --git a/application/Espo/Core/Di/FieldUtilSetter.php b/application/Espo/Core/Di/FieldUtilSetter.php index beab1f8d58..434e5ebbca 100644 --- a/application/Espo/Core/Di/FieldUtilSetter.php +++ b/application/Espo/Core/Di/FieldUtilSetter.php @@ -38,6 +38,9 @@ trait FieldUtilSetter */ protected $fieldUtil; + /** + * @var FieldUtil + */ protected $fieldManagerUtil; public function setFieldUtil(FieldUtil $fieldUtil): void