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)
@jkabat https://phpstan.org/r/b29d6bf2-dd59-41c7-b0a2-e5310e3487d4
Yes, please use the previous version until I resolve this.