phpstan-doctrine
phpstan-doctrine copied to clipboard
How to use in project without ORM?
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