You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to DoctrineBundle 2.6.3 and doctrine/orm 2.12.2 I'm getting the following phpstan errors:
Parameter $repositoryClass of attribute class Doctrine\ORM\Mapping\Entity constructor expects class-string<Doctrine\ORM\EntityRepository<T of object>>|null, 'App\\Repository\\MyEntityRepository' given.
Is this an issue in DoctrineBundle? Or in doctrine/orm? Or an issue on my side?
I'm using phpstan 1.6.7 on level 5.
That issue is for maker-bundle, which should generate the annotation.
Not a bug here since that's "just" about a missing annotation. @extends ServiceEntityRepository<MyEntity> I guess
In theory, phpstan could be able to infer the type of the template by looking at the second argument of ServiceEntityRepository's call to parent::__construct(). Dunno how hard this would be to implement. That might be another issue for phpstan/psalm.
After upgrading to DoctrineBundle 2.6.3 and doctrine/orm 2.12.2 I'm getting the following phpstan errors:
Is this an issue in DoctrineBundle? Or in doctrine/orm? Or an issue on my side?
I'm using phpstan 1.6.7 on level 5.
The text was updated successfully, but these errors were encountered: