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

✨ New Universal.Classes.ModifierKeywordOrder sniff #142

Merged
merged 1 commit into from
Oct 30, 2022

Commits on Oct 30, 2022

  1. ✨ New Universal.Classes.ModifierKeywordOrder sniff

    Sniff to standardize the modifier keyword order for class declarations, what with the `readonly` keyword being introduced in PHP 8.2.
    
    The sniff contains a `public` `$order` property which allows for configuring the preferred order.
    Allowed values:
    * `'extendability readonly'` (= default)
    * `'readonly extendability'`
    
    Includes fixer.
    Includes unit tests.
    Includes documentation.
    Includes metrics.
    
    Ref: https://wiki.php.net/rfc/readonly_classes
    jrfnl committed Oct 30, 2022
    Configuration menu
    Copy the full SHA
    d960fd6 View commit details
    Browse the repository at this point in the history