coding-standards icon indicating copy to clipboard operation
coding-standards copied to clipboard

Remove deprecated/removed PSR-2-R rule

Open tfrommen opened this issue 4 years ago • 3 comments

The PSR2R.Namespaces.UseInAlphabeticalOrder rule has been removed from the PSR-2-R standard, so we should remove it, too. As soon as we'd update the standard, it would break anyway. See #245.

tfrommen avatar Feb 10 '21 09:02 tfrommen

We'll need to copy the rule itself over I think?

rmccue avatar Feb 10 '21 11:02 rmccue

@rmccue well, it's not working as intended, that's why it has been removed. If we want to keep the behavior, I suggest to use the AlphabeticallySortedUses sniff in the Slevomat Coding Standards. This is already a dependency of PSR-2-R, as of version 1.0.0.

tfrommen avatar Feb 10 '21 12:02 tfrommen

Works for me; can you update this PR to do so?

rmccue avatar Feb 10 '21 12:02 rmccue