Skip to content

Conversation

@ColonelMoutarde
Copy link

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

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
@ColonelMoutarde ColonelMoutarde requested a review from a team as a code owner December 1, 2025 07:55
Copy link

@e-zannelli e-zannelli left a 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,
Copy link
Member

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

Capture d’écran 2025-12-01 à 10 12 46

Copy link

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

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gemini says that you're right 👏

Capture d’écran 2025-12-09 à 23 36 35

'method_argument_space' => ['after_heredoc' => true, 'on_multiline' => 'ensure_fully_multiline', 'attribute_placement' => 'ignore'],
'heredoc_indentation' => true,
'visibility_required' => true,
'modifier_keywords' => true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Gemini says that you're right 👏

Capture d’écran 2025-12-09 à 23 36 35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants