From 15c521128b3080484c407409c565679fd82c5ebf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Tue, 8 Dec 2020 12:45:17 +0100 Subject: [PATCH] Enhancement: Configure phpdoc_order_by_value fixer to order coversNothing annotations --- CHANGELOG.md | 2 ++ src/RuleSet/Php71.php | 1 + src/RuleSet/Php73.php | 1 + src/RuleSet/Php74.php | 1 + test/Unit/RuleSet/Php71Test.php | 1 + test/Unit/RuleSet/Php73Test.php | 1 + test/Unit/RuleSet/Php74Test.php | 1 + 7 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 71aa0e53..91be9ce2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ For a full diff see [`2.5.3...main`][2.5.3...main]. * Configured `phpdoc_order_by_value` fixer to order `@dataProvider` annotations by value ([#257]), by [@localheinz] * Configured `phpdoc_order_by_value` fixer to order `@uses` annotations by value ([#258]), by [@localheinz] * Configured `phpdoc_order_by_value` fixer to order `@author` annotations by value ([#259]), by [@localheinz] +* Configured `phpdoc_order_by_value` fixer to order `@coversNothing` annotations by value ([#260]), by [@localheinz] ## [`2.5.3`][2.5.3] @@ -193,6 +194,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#257]: https://github.com/ergebnis/php-cs-fixer-config/pull/257 [#258]: https://github.com/ergebnis/php-cs-fixer-config/pull/258 [#259]: https://github.com/ergebnis/php-cs-fixer-config/pull/259 +[#260]: https://github.com/ergebnis/php-cs-fixer-config/pull/260 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index 642862ad..6d214351 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -303,6 +303,7 @@ final class Php71 extends AbstractRuleSet 'annotations' => [ 'author', 'covers', + 'coversNothing', 'dataProvider', 'uses', ], diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index 8b0fdbef..467970a6 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -303,6 +303,7 @@ final class Php73 extends AbstractRuleSet 'annotations' => [ 'author', 'covers', + 'coversNothing', 'dataProvider', 'uses', ], diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 9c73efad..69bd356a 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -303,6 +303,7 @@ final class Php74 extends AbstractRuleSet 'annotations' => [ 'author', 'covers', + 'coversNothing', 'dataProvider', 'uses', ], diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index 85c9be20..e8b97cb2 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -309,6 +309,7 @@ final class Php71Test extends AbstractRuleSetTestCase 'annotations' => [ 'author', 'covers', + 'coversNothing', 'dataProvider', 'uses', ], diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index a9e56a79..ced314ac 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -309,6 +309,7 @@ final class Php73Test extends AbstractRuleSetTestCase 'annotations' => [ 'author', 'covers', + 'coversNothing', 'dataProvider', 'uses', ], diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 5c7d15d4..9e16d8cf 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -309,6 +309,7 @@ final class Php74Test extends AbstractRuleSetTestCase 'annotations' => [ 'author', 'covers', + 'coversNothing', 'dataProvider', 'uses', ],