diff --git a/CHANGELOG.md b/CHANGELOG.md index bdd6f534..ceeb56fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), For a full diff see [`6.18.0...main`][6.18.0...main]. +### Changed + +- Enabled the `PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone` fixer ([#974]), by [@localheinz] + ## [`6.18.0`][6.18.0] For a full diff see [`6.17.0...6.18.0`][6.17.0...6.18.0]. @@ -1479,6 +1483,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#971]: https://github.com/ergebnis/php-cs-fixer-config/pull/971 [#972]: https://github.com/ergebnis/php-cs-fixer-config/pull/972 [#973]: https://github.com/ergebnis/php-cs-fixer-config/pull/973 +[#974]: https://github.com/ergebnis/php-cs-fixer-config/pull/974 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php53.php b/src/RuleSet/Php53.php index a410c2cb..aec0cab8 100644 --- a/src/RuleSet/Php53.php +++ b/src/RuleSet/Php53.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/src/RuleSet/Php54.php b/src/RuleSet/Php54.php index 0f3f1566..288666d9 100644 --- a/src/RuleSet/Php54.php +++ b/src/RuleSet/Php54.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/src/RuleSet/Php55.php b/src/RuleSet/Php55.php index c0e6c3e3..5ad35a18 100644 --- a/src/RuleSet/Php55.php +++ b/src/RuleSet/Php55.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/src/RuleSet/Php56.php b/src/RuleSet/Php56.php index 63481a78..43773aaf 100644 --- a/src/RuleSet/Php56.php +++ b/src/RuleSet/Php56.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/src/RuleSet/Php70.php b/src/RuleSet/Php70.php index 21fe8b36..4cfe3ff8 100644 --- a/src/RuleSet/Php70.php +++ b/src/RuleSet/Php70.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index ce9b9e97..addab5e6 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/src/RuleSet/Php72.php b/src/RuleSet/Php72.php index 7378f128..ad54b9be 100644 --- a/src/RuleSet/Php72.php +++ b/src/RuleSet/Php72.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index 24ce8e1e..51d187cf 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 451b4690..84938d74 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/src/RuleSet/Php80.php b/src/RuleSet/Php80.php index 359b4d92..87920343 100644 --- a/src/RuleSet/Php80.php +++ b/src/RuleSet/Php80.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/src/RuleSet/Php81.php b/src/RuleSet/Php81.php index b986a969..9f760cfc 100644 --- a/src/RuleSet/Php81.php +++ b/src/RuleSet/Php81.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/src/RuleSet/Php82.php b/src/RuleSet/Php82.php index 9f80d34d..cfe803f3 100644 --- a/src/RuleSet/Php82.php +++ b/src/RuleSet/Php82.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/src/RuleSet/Php83.php b/src/RuleSet/Php83.php index bc61fe27..5e90b379 100644 --- a/src/RuleSet/Php83.php +++ b/src/RuleSet/Php83.php @@ -33,6 +33,7 @@ public static function create(): RuleSet return RuleSet::create( Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -45,6 +46,7 @@ public static function create(): RuleSet $phpVersion, Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php53Test.php b/test/Unit/RuleSet/Php53Test.php index 58ff6e07..af63dcab 100644 --- a/test/Unit/RuleSet/Php53Test.php +++ b/test/Unit/RuleSet/Php53Test.php @@ -44,6 +44,7 @@ protected static function createRuleSet(): RuleSet protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php54Test.php b/test/Unit/RuleSet/Php54Test.php index e446ae78..783069e1 100644 --- a/test/Unit/RuleSet/Php54Test.php +++ b/test/Unit/RuleSet/Php54Test.php @@ -44,6 +44,7 @@ protected static function createRuleSet(): RuleSet protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php55Test.php b/test/Unit/RuleSet/Php55Test.php index c4808a7a..e802c7ff 100644 --- a/test/Unit/RuleSet/Php55Test.php +++ b/test/Unit/RuleSet/Php55Test.php @@ -39,6 +39,7 @@ final class Php55Test extends ExplicitRuleSetTestCase protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php56Test.php b/test/Unit/RuleSet/Php56Test.php index 365078b7..f0d8e146 100644 --- a/test/Unit/RuleSet/Php56Test.php +++ b/test/Unit/RuleSet/Php56Test.php @@ -44,6 +44,7 @@ protected static function createRuleSet(): RuleSet protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php70Test.php b/test/Unit/RuleSet/Php70Test.php index 41b4e090..a57ecacf 100644 --- a/test/Unit/RuleSet/Php70Test.php +++ b/test/Unit/RuleSet/Php70Test.php @@ -44,6 +44,7 @@ protected static function createRuleSet(): RuleSet protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index 8c2c7283..14f982c0 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -44,6 +44,7 @@ protected static function createRuleSet(): RuleSet protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php72Test.php b/test/Unit/RuleSet/Php72Test.php index 02ddacb1..7831adb5 100644 --- a/test/Unit/RuleSet/Php72Test.php +++ b/test/Unit/RuleSet/Php72Test.php @@ -44,6 +44,7 @@ protected static function createRuleSet(): RuleSet protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index 155c7878..4da8d1a9 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -44,6 +44,7 @@ protected static function createRuleSet(): RuleSet protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 282dacd3..504fbc65 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -44,6 +44,7 @@ protected static function createRuleSet(): RuleSet protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php80Test.php b/test/Unit/RuleSet/Php80Test.php index e8d6ab5c..c7a3ea0f 100644 --- a/test/Unit/RuleSet/Php80Test.php +++ b/test/Unit/RuleSet/Php80Test.php @@ -44,6 +44,7 @@ protected static function createRuleSet(): RuleSet protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php81Test.php b/test/Unit/RuleSet/Php81Test.php index d8f66486..bf7f72a2 100644 --- a/test/Unit/RuleSet/Php81Test.php +++ b/test/Unit/RuleSet/Php81Test.php @@ -44,6 +44,7 @@ protected static function createRuleSet(): RuleSet protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php82Test.php b/test/Unit/RuleSet/Php82Test.php index 8ef7386d..ca89b9c4 100644 --- a/test/Unit/RuleSet/Php82Test.php +++ b/test/Unit/RuleSet/Php82Test.php @@ -44,6 +44,7 @@ protected static function createRuleSet(): RuleSet protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [ diff --git a/test/Unit/RuleSet/Php83Test.php b/test/Unit/RuleSet/Php83Test.php index 252b82aa..5bf3de0d 100644 --- a/test/Unit/RuleSet/Php83Test.php +++ b/test/Unit/RuleSet/Php83Test.php @@ -44,6 +44,7 @@ protected static function createRuleSet(): RuleSet protected function expectedCustomFixers(): Fixers { return Fixers::fromFixers( + new Fixer\MultilineCommentOpeningClosingAloneFixer(), new Fixer\PhpdocArrayStyleFixer(), new Fixer\PhpdocTypeListFixer(), new PhpCsFixer\Whitespace\LineBreakAfterStatementsFixer(), @@ -68,6 +69,7 @@ protected function expectedRules(): Rules { return Rules::fromArray([ 'ErickSkrauch/line_break_after_statements' => true, + 'PhpCsFixerCustomFixers/multiline_comment_opening_closing_alone' => true, 'PhpCsFixerCustomFixers/phpdoc_array_style' => true, 'PhpCsFixerCustomFixers/phpdoc_type_list' => true, 'align_multiline_comment' => [