PHP 8.0 | Squiz.WhiteSpace.MemberVarSpacing: add support for attributes #3419
Replies: 1 comment
-
@yariknechyporuk I can't speak for the project or the maintainer(s), but if you want my opinion: Your PR was created without an issue attached to it and without a description explaining what you are changing and why, which generally results in a PR which is low on the priority list. Your PR also changes an existing sniff which is checking for something specific: number of lines of whitespace between properties. Your change is attempting to make that sniff do something new and may well break existing rulesets which expect the sniff to only target whitespace between properties. This makes your PR problematic. What I believe is needed is:
For lack of a PSR covering the formatting of attributes, we need to give ruleset maintainers options and make this elective. If at a later point in time PSR would come up with rules covering attributes, we can then select which of the above sniffs cover those rules and add those to a ruleset to cover the (new) PSR rules. Hope this helps. |
Beta Was this translation helpful? Give feedback.
-
Hi, on 6 May I implemented support for attributes for class member vars. When I got feedback from @jrfnl, ideas were good and I've also implemented them. After that PR got stuck and on 29 Jul @gsherwood added commit 64f2a81 that completely conflicting with my solution, but didn't solve important issues like:
Also I implemented auto-fixes for all possible issues related to my PR.
My team using CS on a daily basis and we really miss a lot features implemented in my PR.
Is it possible to pay attention to this PR? #3334
Suggestions for fixes or improvements are welcome.
Thank you in advance 🙌
Beta Was this translation helpful? Give feedback.
All reactions