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 763f5b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion 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,13 @@ 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 763f5b8

Please sign in to comment.