Skip to content

Commit 32a1b56

Browse files
committed
Upgrade php-cs-fixer to ~3.57.0
1 parent ca8ed41 commit 32a1b56

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
],
3333
"require": {
3434
"php": ">=8.1",
35-
"friendsofphp/php-cs-fixer": "~3.40.0"
35+
"friendsofphp/php-cs-fixer": "~3.57.0"
3636
},
3737
"require-dev": {
3838
"ext-xdebug": "*",

src/Config.php

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,6 @@ protected function prepareRules() : void
8686
'encoding' => true,
8787
'ereg_to_preg' => true,
8888
'error_suppression' => false,
89-
'escape_implicit_backslashes' => [
90-
'double_quoted' => true,
91-
'heredoc_syntax' => true,
92-
'single_quoted' => false,
93-
],
9489
'explicit_indirect_variable' => true,
9590
'explicit_string_variable' => true,
9691
'final_internal_class' => false,
@@ -101,7 +96,10 @@ protected function prepareRules() : void
10196
'closure_function_spacing' => 'one',
10297
],
10398
'function_to_constant' => true,
104-
'general_phpdoc_annotation_remove' => [],
99+
'general_phpdoc_annotation_remove' => [
100+
'annotations' => [],
101+
'case_sensitive' => true,
102+
],
105103
/*'header_comment' => [
106104
'comment_type' => 'comment',
107105
'header' => '',
@@ -275,6 +273,11 @@ protected function prepareRules() : void
275273
'standardize_not_equals' => true,
276274
'static_lambda' => true,
277275
'strict_comparison' => true,
276+
'string_implicit_backslashes' => [
277+
'double_quoted' => 'escape',
278+
'heredoc' => 'escape',
279+
'single_quoted' => 'unescape',
280+
],
278281
'strict_param' => false,
279282
'string_line_ending' => true,
280283
'switch_case_semicolon_to_colon' => true,

0 commit comments

Comments
 (0)