[alternative] Use NodeVisitor for init attribute flag over global Node traverse#444
Conversation
|
@GeniJaho @driftingly @peterfox ready for review/merge 👍 |
|
@samsonasik, is there any way for this package to automatically register this config so users don't have to when using single rules? |
|
@calebdw I am on mobile, not sure, there is rector-extension-installer, but currently only used under rector organization that require-dev of rector-src include usage and require php 8 |
|
Ah, looks handy! Do you think we could use it as part of this PR? |
|
I am not sure as that require php 8.0, and this repo require php 7.4 Line 7 in aee9d4a On rector, the generated config updated on build, while on this, this means that needs to be part of "require" |
|
I don't think this repo needs to For example, phpstan packages don't need to require the |
|
I currently don't have much energy (less sleep due to PHPStan 2.1.34 yesterday), could you handle that ? Thank you. |
…obal Node traverse (driftingly#444)" This reverts commit a8408c7.
@peterfox per your feedback at #443 (comment)
This move to use
NodeVisitorover global Node. Here the benefit and drawback:Benefit:
Drawback:
I've updated readme for it tho.