Skip to content

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Dec 13, 2022

No description provided.

|| $exprLeftType instanceof EnumCaseObjectType
|| ($exprLeftType instanceof ConstantType && !$exprRightType->equals($exprLeftType) && $exprRightType->isSuperTypeOf($exprLeftType)->yes())
Copy link
Contributor Author

Choose a reason for hiding this comment

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

just moving possible expensive isSuperTypeOf to be evaluated later

@ondrejmirtes ondrejmirtes merged commit 926ec9d into phpstan:1.9.x Dec 13, 2022
@ondrejmirtes
Copy link
Member

Thank you.

@staabm staabm deleted the cheap-first-specifier branch December 13, 2022 15:41
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.

2 participants