From 86c80e60b12ba1d1d3d0740cb50d00a6ae9d1723 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Tue, 8 Dec 2020 12:47:12 +0100 Subject: [PATCH] Enhancement: Configure phpdoc_order_by_value fixer to order depends 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 91be9ce2..e8af082e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ For a full diff see [`2.5.3...main`][2.5.3...main]. * 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] +* Configured `phpdoc_order_by_value` fixer to order `@depends` annotations by value ([#261]), by [@localheinz] ## [`2.5.3`][2.5.3] @@ -195,6 +196,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#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 +[#261]: https://github.com/ergebnis/php-cs-fixer-config/pull/261 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index 6d214351..246201a5 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -305,6 +305,7 @@ final class Php71 extends AbstractRuleSet 'covers', 'coversNothing', 'dataProvider', + 'depends', 'uses', ], ], diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index 467970a6..67751aa6 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -305,6 +305,7 @@ final class Php73 extends AbstractRuleSet 'covers', 'coversNothing', 'dataProvider', + 'depends', 'uses', ], ], diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 69bd356a..91881273 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -305,6 +305,7 @@ final class Php74 extends AbstractRuleSet 'covers', 'coversNothing', 'dataProvider', + 'depends', 'uses', ], ], diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index e8b97cb2..b463c777 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -311,6 +311,7 @@ final class Php71Test extends AbstractRuleSetTestCase 'covers', 'coversNothing', 'dataProvider', + 'depends', 'uses', ], ], diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index ced314ac..eac040c8 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -311,6 +311,7 @@ final class Php73Test extends AbstractRuleSetTestCase 'covers', 'coversNothing', 'dataProvider', + 'depends', 'uses', ], ], diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 9e16d8cf..6749c950 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -311,6 +311,7 @@ final class Php74Test extends AbstractRuleSetTestCase 'covers', 'coversNothing', 'dataProvider', + 'depends', 'uses', ], ],