Skip to content

QueryResultTypeWalker: fix TypedExpression handling #579

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

janedbal
Copy link
Contributor

Separated from #506

@@ -817,28 +818,15 @@ public function walkSelectExpression($selectExpression): string
$resultAlias = $selectExpression->fieldIdentificationVariable ?? $this->scalarResultCounter++;
$type = $this->unmarshalType($expr->dispatch($this));

if (class_exists(TypedExpression::class) && $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, class_exists over interface is always false.

@ondrejmirtes ondrejmirtes merged commit b09104d into phpstan:1.4.x Jun 25, 2024
36 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants