Skip to content

Prevent unnecessary work in MutatingScope->mergeVariableHolders()#4720

Merged
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
staabm:cheap
Jan 5, 2026
Merged

Prevent unnecessary work in MutatingScope->mergeVariableHolders()#4720
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
staabm:cheap

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Jan 5, 2026

No description provided.

@staabm
Copy link
Contributor Author

staabm commented Jan 5, 2026

Maybe it might make sense to not even write such expressions into the holders in the first place?

@ondrejmirtes
Copy link
Member

The problem is here is when they become "maybe". With "yes" in the scope they have value.

@ondrejmirtes ondrejmirtes merged commit c91bb40 into phpstan:2.1.x Jan 5, 2026
640 of 646 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the cheap branch January 5, 2026 10:17
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