Bug Report
When I do phpstan check of my code.
| Q |
A |
| BC Break |
yes |
| Version |
2.6.x |
Summary
Parameter #1 $em of method Doctrine\ORM\EntityRepository::__construct() expects Doctrine\ORM\EntityManager, Doctrine\ORM\EntityManagerInterface given.
How to reproduce
class RequestMasterRepository extends EntityRepository implements ServiceEntityRepositoryInterface
{
/**
* CompanyConfigRepository constructor.
*
* @param EntityManagerInterface $manager
*/
public function __construct(EntityManagerInterface $manager)
{
parent::__construct($manager, $manager->getClassMetadata(RequestMaster::class));
}
....
And run phpstam level 7 to this file.
vendor/bin/phpstan analyse -c phpstan.neon -l max src/AppBundle/Repository/