phpstan / phpstan-doctrine

Doctrine extensions for PHPStan
MIT License
598 stars 97 forks source link

Do not infer getArrayResult for now #592

Closed ondrejmirtes closed 5 months ago

ondrejmirtes commented 5 months ago

/cc @VincentLanglet With @janedbal we decided not to release this alongside the huge changes from https://github.com/phpstan/phpstan-doctrine/pull/506.

I'm worried about the impact of #506 and I want to minize it. There's nothing wrong with your PR but it surfaces some issues we should solve first (and that are already present in object hydration to be fair).

I'd love if we could make phpstan-doctrine understand that where/andWhere can make a selected field non-nullable for example.