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

[Experiment] [NodeTypeResolver] Remove no longer needed deep Expr visitor ExprScopeFromStmtNodeVisitor #6223

Merged
merged 2 commits into from
Aug 7, 2024

Conversation

samsonasik
Copy link
Member

It seems deep expr scope visitor no longer needed. This PR remove it.

@samsonasik samsonasik changed the title [NodeTypeResolver] Remove no longer used deep Expr visitor ExprScopeFromStmtNodeVisitor [NodeTypeResolver] Remove no longer needed deep Expr visitor ExprScopeFromStmtNodeVisitor Aug 7, 2024
@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready.

For note: this can be reverted in the future if there is code with deep Expr that phpstan can't locate, and that will require new fixture to proof. I will also check on some projects in case of regression in other projects.

@samsonasik samsonasik changed the title [NodeTypeResolver] Remove no longer needed deep Expr visitor ExprScopeFromStmtNodeVisitor [Experiment] [NodeTypeResolver] Remove no longer needed deep Expr visitor ExprScopeFromStmtNodeVisitor Aug 7, 2024
@TomasVotruba TomasVotruba merged commit 59585ae into main Aug 7, 2024
34 checks passed
@TomasVotruba TomasVotruba deleted the remove-no-longer-used-expr-scope branch August 7, 2024 06:05
@TomasVotruba
Copy link
Member

Lets try this in the wild 👌

@shutnic
Copy link

shutnic commented Aug 28, 2024

Hello, after deleting this piece of code, I encountered issues with using the match operator. Here is a link to the demo https://getrector.com/demo/4750277e-8fdc-4a2f-8bf0-b6aa76090e8f

@samsonasik
Copy link
Member Author

@shutnic I will look into that,note to myself: in phpstan 1.11+, expressionDepth attribute no longer exists, so can't rely on it again

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