Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

[PHPStan] Set compatible with upcoming PHPStan 1.6.x with set NodeConnectingVisitor tags #4029

Merged
merged 3 commits into from
Apr 15, 2022

Conversation

samsonasik
Copy link
Collaborator

@samsonasik samsonasik commented Apr 15, 2022

Based on @ondrejmirtes request at rectorphp/rector-src#2014 (review) , this PR update to set compatible with upcoming PHPStan 1.6.x with update require of phpstan to ^1.5.6 and update conditionalTags of NodeConnectingVisitor for symplify as well.

@samsonasik
Copy link
Collaborator Author

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

@TomasVotruba
Copy link
Member

I wonder, can we get rid of these extra tags? We can upgrade the rules not to need those.

@samsonasik
Copy link
Collaborator Author

samsonasik commented Apr 15, 2022

I am not sure, for example, lookup parent, previous, next attribute which we need to check after, which create custom visitor possibly take too many custom visitor, but I probably missed something.

@samsonasik
Copy link
Collaborator Author

The goal of this PR is to make compatible first very early, and in the future, we can update to use specific visitor when possible.

@TomasVotruba
Copy link
Member

I see 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants