1 | <?php |
||
21 | trait GroupByProvider |
||
22 | { |
||
23 | /** |
||
24 | * @param string[] $fields |
||
25 | * @return Query|$this|self |
||
26 | */ |
||
27 | 2 | public function groupBy(string ...$fields): self |
|
35 | |||
36 | /** |
||
37 | * @param string|\Closure $field |
||
38 | * @param $valueOrOperator |
||
39 | * @param null $value |
||
40 | * @return Query|$this|self |
||
41 | */ |
||
42 | public function orHaving($field, $valueOrOperator = null, $value = null): self |
||
46 | |||
47 | /** |
||
48 | * @param string|\Closure $field |
||
49 | * @param $valueOrOperator |
||
50 | * @param null $value |
||
51 | * @return Query|$this|self |
||
52 | */ |
||
53 | public function having($field, $valueOrOperator = null, $value = null): self |
||
71 | } |
||
72 |
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: