phpstan-doctrine: Unable to resolve the template type

Since I updated to the latest version I’m getting this error (but strangely it’s only at 1 place in my entire project):

Unable to resolve the template type T in call to method Doctrine\ORM\EntityManager::getRepository()

The line that triggers it:

$repository = $entityManager->getRepository(ApiKeyProjection::class);

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 7
  • Comments: 19 (15 by maintainers)

Most upvoted comments

Yes, please use the previous version until I resolve this.