Skip to content

Commit

Permalink
Fix: Explicitly configure phpdoc_order fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Aug 19, 2022
1 parent ac1567a commit 2aaf351
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 6 deletions.
8 changes: 7 additions & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,13 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'phpdoc_no_empty_return' => true,
'phpdoc_no_package' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_order' => true,
'phpdoc_order' => [
'order' => [
'param',
'throws',
'return',
],
],
'phpdoc_order_by_value' => [
'annotations' => [
'author',
Expand Down
8 changes: 7 additions & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,13 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'phpdoc_no_empty_return' => true,
'phpdoc_no_package' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_order' => true,
'phpdoc_order' => [
'order' => [
'param',
'throws',
'return',
],
],
'phpdoc_order_by_value' => [
'annotations' => [
'author',
Expand Down
8 changes: 7 additions & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,13 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'phpdoc_no_empty_return' => true,
'phpdoc_no_package' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_order' => true,
'phpdoc_order' => [
'order' => [
'param',
'throws',
'return',
],
],
'phpdoc_order_by_value' => [
'annotations' => [
'author',
Expand Down
8 changes: 7 additions & 1 deletion test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,13 @@ final class Php74Test extends ExplicitRuleSetTestCase
'phpdoc_no_empty_return' => true,
'phpdoc_no_package' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_order' => true,
'phpdoc_order' => [
'order' => [
'param',
'throws',
'return',
],
],
'phpdoc_order_by_value' => [
'annotations' => [
'author',
Expand Down
8 changes: 7 additions & 1 deletion test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,13 @@ final class Php80Test extends ExplicitRuleSetTestCase
'phpdoc_no_empty_return' => true,
'phpdoc_no_package' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_order' => true,
'phpdoc_order' => [
'order' => [
'param',
'throws',
'return',
],
],
'phpdoc_order_by_value' => [
'annotations' => [
'author',
Expand Down
8 changes: 7 additions & 1 deletion test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,13 @@ final class Php81Test extends ExplicitRuleSetTestCase
'phpdoc_no_empty_return' => true,
'phpdoc_no_package' => true,
'phpdoc_no_useless_inheritdoc' => true,
'phpdoc_order' => true,
'phpdoc_order' => [
'order' => [
'param',
'throws',
'return',
],
],
'phpdoc_order_by_value' => [
'annotations' => [
'author',
Expand Down

0 comments on commit 2aaf351

Please sign in to comment.