chore: preparation for PHPStan 2: remove CheckUseStatementsAfterLicenseRule#9321
Conversation
|
Ready to merge 👍 |
|
I was thinking days ago if this rule can be adapted to phpstan v2? or this rule has gone completely unnecessary? |
|
This rule was exists in the day the docblock location was mixed, since likely when creating new file, we copy paste existing code and modify, so location unmatch with To make adaptable to v2, it can be modified to use |
paulbalandan
left a comment
There was a problem hiding this comment.
TBH, with our current tooling I think this rule is no longer necessary, so I'm ok with this being deleted.
|
Thank you @paulbalandan @michalsn for the review, let's merge 👍 |
Description
The
CheckUseStatementsAfterLicenseRulerule is rely onpreviousattribute, which no longer exists in PHPStan 2, I think this can be removed.Checklist: