Skip to content

Comments

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

Closed
janedbal wants to merge 3 commits intophpstan:1.4.xfrom
janedbal:typed-expression-fix
Closed

QueryResultTypeWalker: fix TypedExpression handling; COUNT(x) is always int#571
janedbal wants to merge 3 commits intophpstan:1.4.xfrom
janedbal:typed-expression-fix

Conversation

@janedbal
Copy link
Contributor

No description provided.

}
return $enforcedType;
});
if ($expr instanceof TypedExpression) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was dead block of code as class_exists(TypedExpression::class) is always false.

@janedbal
Copy link
Contributor Author

janedbal commented May 29, 2024

I tried extracting this from #506, but it is just wrong. The stringification happens even for TypedExpressions, so closing this.

@janedbal janedbal closed this May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant