diff --git a/src/lib/Handler.php b/src/lib/Handler.php index cc86a4f..5034029 100644 --- a/src/lib/Handler.php +++ b/src/lib/Handler.php @@ -176,6 +176,7 @@ public function findSingle(Query\CriterionInterface $filter, array $languageFilt throw new InvalidArgumentException('totalCount', 'findSingle() found more then one Content item for the given $filter'); } + /** @phpstan-ignore-next-line */ return reset($result->searchHits)->valueObject; } diff --git a/src/lib/ResultExtractor.php b/src/lib/ResultExtractor.php index 1f95e60..e935025 100644 --- a/src/lib/ResultExtractor.php +++ b/src/lib/ResultExtractor.php @@ -184,9 +184,6 @@ protected function extractFacets(stdClass $data, array $facetBuilders, array $la return $facets; } - /** - * @phpstan-return \Ibexa\Contracts\Core\Repository\Values\Content\Search\SearchHit<\Ibexa\Contracts\Core\Repository\Values\ValueObject> - */ protected function extractSearchHit(stdClass $doc, array $languageFilter): SearchHit { return new SearchHit(