From dea7ffcabda21eb1f03e0fe222518cc58f8f9e6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 24 May 2020 21:26:51 +0200 Subject: [PATCH] Fixed PHPstan issue. --- src/Services/Parts/PartsTableActionHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Services/Parts/PartsTableActionHandler.php b/src/Services/Parts/PartsTableActionHandler.php index 130a6427..6db7a3fa 100644 --- a/src/Services/Parts/PartsTableActionHandler.php +++ b/src/Services/Parts/PartsTableActionHandler.php @@ -26,6 +26,7 @@ use App\Entity\Parts\Footprint; use App\Entity\Parts\Manufacturer; use App\Entity\Parts\MeasurementUnit; use App\Entity\Parts\Part; +use App\Repository\DBElementRepository; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Security\Core\Exception\AccessDeniedException; use Symfony\Component\Security\Core\Security; @@ -50,6 +51,7 @@ final class PartsTableActionHandler { $id_array = explode(',', $ids); + /** @var DBElementRepository $repo */ $repo = $this->entityManager->getRepository(Part::class); return $repo->getElementsFromIDArray($id_array); }