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

fix: remove braces rule #24

Merged
merged 1 commit into from
Jun 12, 2023
Merged

fix: remove braces rule #24

merged 1 commit into from
Jun 12, 2023

Conversation

Bchaises
Copy link
Contributor

@Bchaises Bchaises commented Jun 6, 2023

Why?

The braces rule has been deprecated since version 3.16 of PHP-CS-Fixer so it must be removed and replaced by its equivalents.
However, those rules ("single_space_around_construct", "control_structure_braces", "curly_braces_position", "control_structure_continuation_position", "declare_parentheses", "statement_indentation", "no_multiple_statements_per_line" and "no_extra_blank_lines") are already enabled in PHP-CS-Fixer.
In addition, thefriendsofphp/php-cs-fixer version must be changed to 3.16 minimum, since one of the rules,single_space_around_construct becomes usable from this version.

@Bchaises Bchaises changed the title Fix: remove braces rule fix: remove braces rule Jun 6, 2023
@Bchaises Bchaises self-assigned this Jun 6, 2023
@Bchaises Bchaises marked this pull request as ready for review June 6, 2023 13:16
@Bchaises Bchaises requested a review from a team as a code owner June 6, 2023 13:16
@Bchaises Bchaises merged commit 45b941b into master Jun 12, 2023
3 checks passed
@Bchaises Bchaises deleted the fix/remove_braces_rule branch June 12, 2023 08:52
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.

None yet

5 participants