You have injected the Request via parameter $request. This is generally not recommended as there might be multiple instances during a request cycle (f.e. when using sub-requests). Instead, it is recommended to inject the RequestStack and retrieve the current request each time you need it via getCurrentRequest().
It seems like $request of type object<Illuminate\Http\Request> is incompatible with the declared type object<Cerbero\QueryFilt...lluminate\Http\Request> of property $request.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
It seems like $query of type object<Illuminate\Database\Eloquent\Builder> is incompatible with the declared type object<Cerbero\QueryFilt...abase\Eloquent\Builder> of property $query.
Our type inference engine has found an assignment to a property that is incompatible
with the declared type of that property.
Either this assignment is in error or the assigned type should be added
to the documentation/type hint for that property..
Loading history...
49
50
foreach ($this->request->all() as $filter => $value) {
Adding a
@return
annotation to a constructor is not recommended, since a constructor does not have a meaningful return value.Please refer to the PHP core documentation on constructors.