1 | <?php |
||||
2 | |||||
3 | namespace ApiChef\RequestQueryHelper; |
||||
4 | |||||
5 | trait InteractWithQueryString |
||||
6 | { |
||||
7 | protected function prepareSortsForValidation() |
||||
8 | { |
||||
9 | $this->merge([ |
||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||
10 | 'sort' => $this->sorts()->getFields()->mapWithKeys(function (SortField $field) { |
||||
0 ignored issues
–
show
It seems like
sorts() must be provided by classes using this trait. How about adding it as abstract method to this trait?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||
11 | return [$field->getField() => $field->getParams()]; |
||||
12 | })->all(), |
||||
13 | ]); |
||||
14 | } |
||||
15 | } |
||||
16 |