1 | <?php |
||
18 | trait WhereInSelection |
||
19 | { |
||
20 | /** |
||
21 | * @param array $args |
||
22 | * @return array |
||
23 | */ |
||
24 | protected function argumentsWithWhereIn(array $args): array |
||
33 | |||
34 | /** |
||
35 | * @return string |
||
36 | */ |
||
37 | private function getQueryName(): string |
||
43 | |||
44 | /** |
||
45 | * @param EBuilder|QBuilder $builder |
||
46 | * @param array $args |
||
47 | * @return EBuilder |
||
48 | */ |
||
49 | protected function queryWithWhereIn($builder, array &$args = []) |
||
63 | } |
It seems like the method you are trying to call exists only in some of the possible types.
Let’s take a look at an example:
Available Fixes
Add an additional type-check:
Only allow a single type to be passed if the variable comes from a parameter: