From c307f90ff6125abce61e97fedf19125c04889dc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Sat, 19 Dec 2020 09:23:38 +0100 Subject: [PATCH] Enhancement: Configure phpdoc_order_by_value fixer to order throws annotations --- CHANGELOG.md | 4 +++- 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, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 40f2abc2..7aac67ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,8 @@ For a full diff see [`2.8.0...main`][2.8.0...main]. ### Changed * Enabled and configured `php_unit_test_case_static_method_calls` fixer for `Ergebnis\PhpCsFixer\Config\RuleSet\PhpUnit` ([#301]), by [@localheinz] -* +* configured `phpdoc_order_by_value` fixer to order `@throws` annotations ([#302]), by [@localheinz] + ## [`2.8.0`][2.8.0] For a full diff see [`2.7.0...2.8.0`][2.7.0...2.8.0]. @@ -273,6 +274,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#291]: https://github.com/ergebnis/php-cs-fixer-config/pull/291 [#300]: https://github.com/ergebnis/php-cs-fixer-config/pull/300 [#301]: https://github.com/ergebnis/php-cs-fixer-config/pull/301 +[#302]: https://github.com/ergebnis/php-cs-fixer-config/pull/302 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index 744aa89d..7b671f54 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -334,6 +334,7 @@ final class Php71 extends AbstractRuleSet 'group', 'internal', 'requires', + 'throws', 'uses', ], ], diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index f4300790..939d2eb5 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -334,6 +334,7 @@ final class Php73 extends AbstractRuleSet 'group', 'internal', 'requires', + 'throws', 'uses', ], ], diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 8b662df6..693e9175 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -334,6 +334,7 @@ final class Php74 extends AbstractRuleSet 'group', 'internal', 'requires', + 'throws', 'uses', ], ], diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index 56b1cb4b..0479db3b 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -340,6 +340,7 @@ final class Php71Test extends AbstractRuleSetTestCase 'group', 'internal', 'requires', + 'throws', 'uses', ], ], diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index 5345dce2..370d49e4 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -340,6 +340,7 @@ final class Php73Test extends AbstractRuleSetTestCase 'group', 'internal', 'requires', + 'throws', 'uses', ], ], diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 5a30010e..43c27b8b 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -340,6 +340,7 @@ final class Php74Test extends AbstractRuleSetTestCase 'group', 'internal', 'requires', + 'throws', 'uses', ], ],