Skip to content

MutatingScope: prevent unnecessary scope re-creation after openssl* calls - #4854

Merged
VincentLanglet merged 2 commits into
phpstan:2.1.xfrom
staabm:unn
Feb 9, 2026
Merged

VincentLanglet merged 2 commits into
phpstan:2.1.xfrom
staabm:unn

Conversation

@staabm

@staabm staabm commented Feb 3, 2026 •

Copy link
Copy Markdown
Contributor

minimize scope re-creating to maximize re-use of resolved expressions (so prevent repetative resolving of the same expressions).

scope re-creation is one of the top 5 calls as is type resolving.

grafik

@staabm
staabm marked this pull request as ready for review February 3, 2026 07:39
@phpstan-bot

Copy link
Copy Markdown
Collaborator

This pull request has been marked as ready for review.

@VincentLanglet
VincentLanglet merged commit a63e97c into phpstan:2.1.x Feb 9, 2026
635 of 640 checks passed
@staabm
staabm deleted the unn branch February 9, 2026 09:03
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.

3 participants