diff --git a/composer.json b/composer.json index 2581bd9..d7bfe81 100644 --- a/composer.json +++ b/composer.json @@ -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": "*", diff --git a/src/Config.php b/src/Config.php index 86a7f38..e897bf2 100644 --- a/src/Config.php +++ b/src/Config.php @@ -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, @@ -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' => '', @@ -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,