phpstan-doctrine icon indicating copy to clipboard operation
phpstan-doctrine copied to clipboard

How to use in project without ORM?

Open DjordyKoert opened this issue 1 year ago • 0 comments

Hey! 😄

How can I use phpstan-doctrine inside if a project without an doctrine ORM? The project does have doctrine DBAL available but apparently the driver being used cannot be detected without doctrine ORM which is causing return types from Doctrine\DBAL\Result to always be of mixed.

Relates to https://github.com/phpstan/phpstan/issues/10906#issuecomment-2325790087

DjordyKoert avatar Oct 10 '24 15:10 DjordyKoert