phpstan / phpstan-doctrine

Doctrine extensions for PHPStan
MIT License
588 stars 96 forks source link

QueryResultTypeWalker: fix TypedExpression handling; COUNT(x) is always int #571

Closed janedbal closed 4 months ago

janedbal commented 4 months ago

I tried extracting this from https://github.com/phpstan/phpstan-doctrine/pull/506, but it is just wrong. The stringification happens even for TypedExpressions, so closing this.