Skip to content

UselessCastRule: do cheaper check first#274

Merged
ondrejmirtes merged 1 commit intophpstan:2.0.xfrom
staabm:cheap
Jul 17, 2025
Merged

UselessCastRule: do cheaper check first#274
ondrejmirtes merged 1 commit intophpstan:2.0.xfrom
staabm:cheap

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Jun 8, 2025

just switching the order of early return conditions, so that simple bool comparisons are done first

@ondrejmirtes ondrejmirtes merged commit 1f1358d into phpstan:2.0.x Jul 17, 2025
31 checks passed
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you.

@staabm staabm deleted the cheap branch July 17, 2025 12:11
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