Static analysis throws an error with this code :
class JobFilter extends QueryFilter
{
...
}
class JobController
{
protected JobFilter $filter;
public function index(Request $request) {
$this->jobFilter = JobFilter::make(['foo' => $request->input('foo')]);
}
}
Error from PHPStan : "Property JobController::$filter (JobFilter) does not accept Kblais\QueryFilter\QueryFilter"
Static analysis throws an error with this code :
Error from PHPStan : "Property JobController::$filter (JobFilter) does not accept Kblais\QueryFilter\QueryFilter"