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

Add support for * syntax in OrderedAttributesFixer #7993

Open
2 tasks done
VincentLanglet opened this issue May 8, 2024 · 0 comments
Open
2 tasks done

Add support for * syntax in OrderedAttributesFixer #7993

VincentLanglet opened this issue May 8, 2024 · 0 comments
Labels
kind/enhancement kind/feature request topic/attributes PHP8 native attributes topic/PHP8.0 Related to features available in PHP 8.0+

Comments

@VincentLanglet
Copy link
Contributor

VincentLanglet commented May 8, 2024

Feature request

The idea would be to support syntax like

['sort_algorithm' => 'custom', 'order' => ['A\\B\\Qux', 'A\\B\\Bar', 'A\\B\\*', '*', 'A\\C\\Foo']]

which would say

  • A\B\Qux first
  • A\B\Bar second
  • All the A\B\ attributes
  • Any other attributes except A\C\Foo
  • A\C\Foo last

The supported syntax should be similar to phpdoc_separation which already support syntax like 'ORM\\*'.

Link to Discussion where feature request was formed

#7395 (comment)

Contribution Checks

  • I have verified if this feature request was already discussed
  • I am familiar with "Feature or bug?"
@VincentLanglet VincentLanglet added kind/feature request status/to verify issue needs to be confirmed or analysed to continue labels May 8, 2024
@Wirone Wirone added kind/enhancement topic/PHP8.0 Related to features available in PHP 8.0+ topic/attributes PHP8 native attributes and removed status/to verify issue needs to be confirmed or analysed to continue labels May 9, 2024
@Wirone Wirone changed the title Add support for * syntax in OrderedAttributesFixer Add support for * syntax in OrderedAttributesFixer May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement kind/feature request topic/attributes PHP8 native attributes topic/PHP8.0 Related to features available in PHP 8.0+
Projects
None yet
Development

No branches or pull requests

2 participants