-
Couldn't load subscription status.
- Fork 0
Bumped PHP CS Fixer to v3.89.1 and updated deprecated rules #18
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: main
Are you sure you want to change the base?
Conversation
- Rule "braces" is deprecated. Use "single_space_around_construct", "control_structure_braces", "control_structure_continuation_position", "declare_parentheses", "no_multiple_statements_per_line", "braces_position", "statement_indentation" and "no_extra_blank_lines" instead. - Rule "native_function_type_declaration_casing" is deprecated. Use "native_type_declaration_casing" instead. - Rule "new_with_braces" is deprecated. Use "new_with_parentheses" instead. - Rule "no_unneeded_curly_braces" is deprecated. Use "no_unneeded_braces" instead.
d55fce7 to
def867a
Compare
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.
+1 but would be nice to see this "in action" to verify if there are rules that don't fit.
@konradoboza yeah, I'd like that too, but it's a bit difficult ATM, because of removal of FQCNs from the doc and multiline parameters. Applying 2.2.x-dev on Maybe I'll try to cherry-pick this to 2.1.0 tag locally... :/ |
Didn't aim to suggest any additional work. We can iterate and decide once we start using bumped version. |
* The rule is configured in the `AbstractIbexaRuleSet`
`single_line_empty_body` tends to conflict with `braces_position` on some environments
…extra_blank_lines` `blank_line_between_import_groups` tends to conflict with `no_extra_blank_lines` on some environments
ab38329 to
3af3fa9
Compare
|
Files changed: 1) src/lib/Tab/Dashboard/PagerLocationToDataMapper.php (fully_qualified_strict_types, ordered_imports) 2) tests/bundle/ControllerArgumentResolver/ContentTreeChildrenQueryArgumentResolverTest.php (fully_qualified_strict_types) 3) tests/lib/Form/DataTransformer/LanguageTransformerTest.php (fully_qualified_strict_types) 4) tests/lib/Form/Data/FormMapper/ContentTypeDraftMapperTest.php (fully_qualified_strict_types, header_comment, blank_lines_before_namespace) 5) tests/lib/Permission/LimitationResolverTest.php (fully_qualified_strict_types)
Related PRs:
Description:
Yet another pre-release step for 2.2.0.
Bumped PHP CS Fixer fixed version constraint to the latest
v3.89.1.We had some deprecated rules. New fixer introduced
@PER-CS2x0set in place of@PER-CS2.0one.Also there were some pre-existing deprecations for
v3.75.0:It was quite complicated for thebraces, so hopefully I got it right.Seems like some rules conflict with each other:
braces_positionandsingle_line_empty_body. The former one creates:blank_line_between_import_groupsandno_extra_blank_lines. The former one:Defined explicitly in an ordered fashion (the last one seems to take precedence) for Ibexa 4.6 Rule Set. Ibexa 5.0 Rule Set relies on
@PER-CS2x0which sets these by default (experimented last week on admin-ui changes formainand it seemed not to produce any CS issues).Tip
Note that the above are non-deterministic and depend on some factors unknown to me. ATM CI was not showing these issues, however locally without defining explicit order for these rules, I got CS issues reported.