Skip to content

Commit

Permalink
Fixed PHPStan error
Browse files Browse the repository at this point in the history
  • Loading branch information
kisztof committed Sep 15, 2023
1 parent faef5f2 commit 94edd93
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/lib/QueryType/SearchQueryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
use Ibexa\Contracts\Core\Repository\Values\User\User;
use Ibexa\Contracts\Search\SortingDefinition\SortingDefinitionRegistryInterface;
use Ibexa\Core\QueryType\OptionsResolverBasedQueryType;
use Ibexa\Core\Repository\SearchService;
use Symfony\Component\OptionsResolver\OptionsResolver;

class SearchQueryType extends OptionsResolverBasedQueryType
Expand All @@ -25,9 +26,12 @@ class SearchQueryType extends OptionsResolverBasedQueryType

private SortingDefinitionRegistryInterface $sortingDefinitionRegistry;

public function __construct(SortingDefinitionRegistryInterface $sortingDefinitionRegistry)
{
public function __construct(
SearchService $searchService,
SortingDefinitionRegistryInterface $sortingDefinitionRegistry
) {
$this->sortingDefinitionRegistry = $sortingDefinitionRegistry;
$this->searchService = $searchService;
}

protected function doGetQuery(array $parameters): Query
Expand Down

0 comments on commit 94edd93

Please sign in to comment.