$repository is of type object<Doctrine\Common\P...tence\ObjectRepository>, but the property $repository was declared to be of type object<LAG\DoctrineRepos...ry\RepositoryInterface>. Are you sure that you always receive this specific sub-class here, or does it make sense to add an instanceof check?
Our type inference engine has found a suspicous assignment of a value to a property.
This check raises an issue when a value that can be of a given class or a super-class
is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.
The expression $this->repository->findB...erBy, $limit, $offset); of type array|Doctrine\Common\Collections\Collection adds the type array to the return on line 41 which is incompatible with the return type documented by LAG\AdminBundle\DataProvider\DataProvider::findBy of type Doctrine\Common\Collections\Collection.
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.