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.
/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.