From b08c6d4ada36fad39a97c3e30671c050d0a50e0b Mon Sep 17 00:00:00 2001 From: mattamon Date: Tue, 16 Apr 2024 10:01:04 +0200 Subject: [PATCH] Add type hint --- src/Service/GenericData/V1/DataObjectSearchAdapter.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Service/GenericData/V1/DataObjectSearchAdapter.php b/src/Service/GenericData/V1/DataObjectSearchAdapter.php index 7b5042f32..92a33a9f4 100644 --- a/src/Service/GenericData/V1/DataObjectSearchAdapter.php +++ b/src/Service/GenericData/V1/DataObjectSearchAdapter.php @@ -21,6 +21,7 @@ use Pimcore\Bundle\StudioApiBundle\Dto\DataObject; use Pimcore\Bundle\StudioApiBundle\Service\DataObjectSearchResult; use Pimcore\Bundle\StudioApiBundle\Service\GenericData\DataObjectSearchAdapterInterface; +use Pimcore\Model\DataObject\Concrete; use Pimcore\Model\Element\ElementInterface; final readonly class DataObjectSearchAdapter implements DataObjectSearchAdapterInterface @@ -36,6 +37,7 @@ public function searchDataObjects(DataObjectQuery $dataObjectQuery): DataObjectS $searchResult = $this->searchService->search($dataObjectQuery->getSearch()); foreach($searchResult->getIds() as $id) { + /** @var Concrete $dataObject */ $dataObject = $this->getDataObjectById($id); if (!$dataObject) { continue;