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

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 30, 2022

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

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 jrfnl added this to the 1.0.0-alpha4 milestone Oct 30, 2022
@jrfnl jrfnl merged commit d714b58 into develop Oct 30, 2022
@jrfnl jrfnl deleted the universal/new-class-modifier-keyword-order-sniff branch October 30, 2022 11:23
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.

None yet

1 participant