diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 0e786c4c8a5..e16e47480cc 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -36,7 +36,6 @@ 'modernize_strpos' => true, // needs PHP 8+ or polyfill 'no_useless_concat_operator' => false, // TODO switch back on when the `src/Console/Application.php` no longer needs the concat 'numeric_literal_separator' => true, - 'string_implicit_backslashes' => true, // https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/pull/7786 ]) ->setFinder( (new Finder()) diff --git a/doc/ruleSets/PhpCsFixer.rst b/doc/ruleSets/PhpCsFixer.rst index c9bb1a3254d..8a0ab5b0e1a 100644 --- a/doc/ruleSets/PhpCsFixer.rst +++ b/doc/ruleSets/PhpCsFixer.rst @@ -66,10 +66,7 @@ Rules - `self_static_accessor <./../rules/class_notation/self_static_accessor.rst>`_ - `single_line_comment_style <./../rules/comment/single_line_comment_style.rst>`_ - `single_line_empty_body <./../rules/basic/single_line_empty_body.rst>`_ -- `string_implicit_backslashes <./../rules/string_notation/string_implicit_backslashes.rst>`_ with config: - - ``['single_quoted' => 'ignore']`` - +- `string_implicit_backslashes <./../rules/string_notation/string_implicit_backslashes.rst>`_ - `whitespace_after_comma_in_array <./../rules/array_notation/whitespace_after_comma_in_array.rst>`_ with config: ``['ensure_single_space' => true]`` diff --git a/doc/rules/string_notation/string_implicit_backslashes.rst b/doc/rules/string_notation/string_implicit_backslashes.rst index c615ca80148..a4fd82061f1 100644 --- a/doc/rules/string_notation/string_implicit_backslashes.rst +++ b/doc/rules/string_notation/string_implicit_backslashes.rst @@ -144,10 +144,7 @@ Rule sets The rule is part of the following rule set: -- `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ with config: - - ``['single_quoted' => 'ignore']`` - +- `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ References ---------- diff --git a/src/RuleSet/Sets/PhpCsFixerSet.php b/src/RuleSet/Sets/PhpCsFixerSet.php index e90a02dd807..8770cbada8b 100644 --- a/src/RuleSet/Sets/PhpCsFixerSet.php +++ b/src/RuleSet/Sets/PhpCsFixerSet.php @@ -119,7 +119,7 @@ public function getRules(): array 'single_line_comment_style' => true, 'single_line_empty_body' => true, 'single_line_throw' => false, - 'string_implicit_backslashes' => ['single_quoted' => 'ignore'], + 'string_implicit_backslashes' => true, 'whitespace_after_comma_in_array' => ['ensure_single_space' => true], ]; }