1 | <?php |
||
25 | class SearchFilter extends Base implements QueryFilterInterface |
||
26 | { |
||
27 | |||
28 | /** |
||
29 | * @readwrite |
||
30 | * @var string |
||
31 | */ |
||
32 | protected $pattern; |
||
33 | |||
34 | /** |
||
35 | * @readwrite |
||
36 | * @var string[] |
||
37 | */ |
||
38 | protected $fields = []; |
||
39 | |||
40 | /** |
||
41 | * Applies the filter to the provided query |
||
42 | * |
||
43 | * @param QueryObjectInterface $query |
||
44 | * |
||
45 | * @return $this|self|QueryFilterInterface |
||
46 | */ |
||
47 | 4 | public function apply(QueryObjectInterface $query) |
|
62 | |||
63 | /** |
||
64 | * Gets the query condition for provided fields |
||
65 | * |
||
66 | * @return string |
||
67 | */ |
||
68 | 2 | protected function getQueryCondition() |
|
76 | } |
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: