1 | <?php |
||
28 | class FilterManager implements FilterManagerInterface |
||
29 | { |
||
30 | /** |
||
31 | * @var FilterContainer |
||
32 | */ |
||
33 | private $container; |
||
34 | |||
35 | /** |
||
36 | * @var Repository |
||
37 | */ |
||
38 | private $repository; |
||
39 | |||
40 | /** |
||
41 | * @param FilterContainer $container |
||
42 | * @param Repository $repository |
||
43 | */ |
||
44 | public function __construct(FilterContainer $container, Repository $repository) |
||
49 | |||
50 | /** |
||
51 | * {@inheritdoc} |
||
52 | */ |
||
53 | public function handleRequest(Request $request) |
||
54 | { |
||
55 | return $this->search($this->container->buildSearchRequest($request)); |
||
56 | } |
||
57 | |||
58 | /** |
||
59 | * Executes search. |
||
60 | * |
||
61 | * @param SearchRequest $request |
||
62 | * |
||
63 | * @return SearchResponse |
||
64 | */ |
||
65 | public function search(SearchRequest $request) |
||
90 | |||
91 | /** |
||
92 | * Composes url parameters related to given filter. |
||
93 | * |
||
94 | * @param SearchRequest $request Search request. |
||
95 | * @param FilterInterface $filter Filter. |
||
96 | * @param array $exclude Additional names of filters to exclude. |
||
97 | * |
||
98 | * @return array |
||
99 | */ |
||
100 | protected function composeUrlParameters(SearchRequest $request, FilterInterface $filter = null, $exclude = []) |
||
123 | |||
124 | /** |
||
125 | * Creates view data for each filter. |
||
126 | * |
||
127 | * @param DocumentIterator $result |
||
128 | * @param SearchRequest $request |
||
129 | * |
||
130 | * @return ViewData[] |
||
131 | */ |
||
132 | protected function getFiltersViewData(DocumentIterator $result, SearchRequest $request) |
||
155 | } |
||
156 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: