Skip to content

Commit

Permalink
Upgrade php-cs-fixer to ~3.57.0
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed May 17, 2024
1 parent ca8ed41 commit 32a1b56
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
],
"require": {
"php": ">=8.1",
"friendsofphp/php-cs-fixer": "~3.40.0"
"friendsofphp/php-cs-fixer": "~3.57.0"
},
"require-dev": {
"ext-xdebug": "*",
Expand Down
15 changes: 9 additions & 6 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,6 @@ protected function prepareRules() : void
'encoding' => true,
'ereg_to_preg' => true,
'error_suppression' => false,
'escape_implicit_backslashes' => [
'double_quoted' => true,
'heredoc_syntax' => true,
'single_quoted' => false,
],
'explicit_indirect_variable' => true,
'explicit_string_variable' => true,
'final_internal_class' => false,
Expand All @@ -101,7 +96,10 @@ protected function prepareRules() : void
'closure_function_spacing' => 'one',
],
'function_to_constant' => true,
'general_phpdoc_annotation_remove' => [],
'general_phpdoc_annotation_remove' => [
'annotations' => [],
'case_sensitive' => true,
],
/*'header_comment' => [
'comment_type' => 'comment',
'header' => '',
Expand Down Expand Up @@ -275,6 +273,11 @@ protected function prepareRules() : void
'standardize_not_equals' => true,
'static_lambda' => true,
'strict_comparison' => true,
'string_implicit_backslashes' => [
'double_quoted' => 'escape',
'heredoc' => 'escape',
'single_quoted' => 'unescape',
],
'strict_param' => false,
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
Expand Down

0 comments on commit 32a1b56

Please sign in to comment.