Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruleset::explain(): use natural sorting #79

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 11, 2023

Description

Recreation of upstream PR squizlabs/PHP_CodeSniffer#3868:

Use natural sorting for the list of included sniffs

The SORT_NATURAL and the SORT_FLAG_CASE flag are available since PHP 5.4, so can be used without issue.

Suggested changelog entry

The -e (explain) command will now list sniffs in natural order.

... for the list of included sniffs.

The `SORT_NATURAL` and the `SORT_FLAG_CASE` flag are available since PHP 5.4, so can be used without issue.
@jrfnl jrfnl force-pushed the feature/ruleset-explain-use-natural-sort branch from d1f49be to 631f16a Compare December 4, 2023 14:32
@jrfnl jrfnl merged commit 11d5c66 into master Dec 4, 2023
65 checks passed
@jrfnl jrfnl deleted the feature/ruleset-explain-use-natural-sort branch December 4, 2023 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant