Enum ordering support #7946
phpfui
started this conversation in
Feature ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I would love to get an
ordered_enum_elements
likeordered_class_elements
fixer.I would think the options would be 'false' (don't order, leave alone even if
ordered_class_elements
is set) orsort_algorithm
=name
orvalue
.My use case is this:
I would order it by value, but I can see a use case to order by name, or don't order at all. Currently it defaults to
order_class_elements
, but I use enums in the user interface, so the order makes a difference to me.I would be happy to submit a PR, but would like some guidance as to what this should be called, the options and also where to implement this.
Thanks for the help.
Beta Was this translation helpful? Give feedback.
All reactions