-
Notifications
You must be signed in to change notification settings - Fork 6
Replace 'visibility_required' with 'modifier_keywords' #32
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
base: master
Are you sure you want to change the base?
Conversation
This rule is deprecated and will be removed in the next major version You should use modifier_keywords instead. https://cs.symfony.com/doc/rules/class_notation/visibility_required.html
e-zannelli
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't we depend on php-cs-fixer ^3.88 then?
| 'method_argument_space' => ['after_heredoc' => true, 'on_multiline' => 'ensure_fully_multiline', 'attribute_placement' => 'ignore'], | ||
| 'heredoc_indentation' => true, | ||
| 'visibility_required' => true, | ||
| 'modifier_keywords' => true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will it work using true? 🤔
regarding the docs, it seems to require at least a elements key to be properly configured
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was understanding true as activate the rule and use the default value (we use it for some other rules) but I cannot find anything to assert that in the documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| 'method_argument_space' => ['after_heredoc' => true, 'on_multiline' => 'ensure_fully_multiline', 'attribute_placement' => 'ignore'], | ||
| 'heredoc_indentation' => true, | ||
| 'visibility_required' => true, | ||
| 'modifier_keywords' => true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

This rule is deprecated and will be removed in the next major version
You should use modifier_keywords instead.
https://cs.symfony.com/doc/rules/class_notation/visibility_required.html