| 1 | <?php |
||
| 19 | trait WhereInSelection |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * @param array $args |
||
| 23 | * @return array |
||
| 24 | */ |
||
| 25 | protected function argumentsWithWhereIn(array $args): array |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | private function getQueryName(): string |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @param EBuilder|QBuilder $builder |
||
| 47 | * @param array $args |
||
| 48 | * @return EBuilder |
||
| 49 | */ |
||
| 50 | protected function queryWithWhereIn($builder, array $args = []) |
||
| 62 | } |
||
| 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: