Skip to content

Commit

Permalink
Add type doc typ hint
Browse files Browse the repository at this point in the history
  • Loading branch information
mattamon committed Apr 19, 2024
1 parent 3c60120 commit 86ea3cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Service/GenericData/V1/DataObjectSearchAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

namespace Pimcore\Bundle\StudioApiBundle\Service\GenericData\V1;

use Pimcore\Bundle\GenericDataIndexBundle\Model\Search\DataObject\DataObjectSearchInterface;
use Pimcore\Bundle\GenericDataIndexBundle\Service\Search\SearchService\DataObject\DataObjectSearchServiceInterface;
use Pimcore\Bundle\StaticResolverBundle\Models\Element\ServiceResolver;
use Pimcore\Bundle\StudioApiBundle\Response\DataObject;
Expand All @@ -34,7 +35,10 @@ public function __construct(

public function searchDataObjects(QueryInterface $dataObjectQuery): DataObjectSearchResult
{
$searchResult = $this->searchService->search($dataObjectQuery->getSearch());
/** @var DataObjectSearchInterface $search */
$search = $dataObjectQuery->getSearch();

$searchResult = $this->searchService->search($search);
$result = [];
foreach($searchResult->getIds() as $id) {
/** @var Concrete $dataObject */
Expand Down

0 comments on commit 86ea3cb

Please sign in to comment.