Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Future-proof ScopeFactory #3453

Merged
merged 1 commit into from
May 31, 2020
Merged

Conversation

ondrejmirtes
Copy link
Contributor

As MutatingScope constructor can change often and is not covered by backwards compatibility promise, this is a much better way to construct it. As you can notice, it's just a bunch of code deleted as you can simply call $this->phpStanScopeFactory->create() for the same effect.

Thanks.

@ondrejmirtes ondrejmirtes force-pushed the scope-factory branch 3 times, most recently from 452c4be to 5d6e3ed Compare May 31, 2020 12:16
@TomasVotruba
Copy link
Member

I see, thank you Ondra.

@TomasVotruba TomasVotruba merged commit 3465583 into rectorphp:master May 31, 2020
TomasVotruba added a commit that referenced this pull request Mar 4, 2023
rectorphp/rector-src@ed16cab [Php80] Add typed property Closure support on ClassPropertyAssignToConstructorPromotionRector (#3453)
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