Skip to content

Commit

Permalink
Fix: Explicitly configure single_import_per_statement fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Aug 19, 2022
1 parent 2a440d2 commit ac1567a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,9 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'property',
],
],
'single_import_per_statement' => true,
'single_import_per_statement' => [
'group_to_single_imports' => true,
],
'single_line_after_imports' => true,
'single_line_comment_spacing' => true,
'single_line_comment_style' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,9 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'property',
],
],
'single_import_per_statement' => true,
'single_import_per_statement' => [
'group_to_single_imports' => true,
],
'single_line_after_imports' => true,
'single_line_comment_spacing' => true,
'single_line_comment_style' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,9 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'property',
],
],
'single_import_per_statement' => true,
'single_import_per_statement' => [
'group_to_single_imports' => true,
],
'single_line_after_imports' => true,
'single_line_comment_spacing' => true,
'single_line_comment_style' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,9 @@ final class Php74Test extends ExplicitRuleSetTestCase
'property',
],
],
'single_import_per_statement' => true,
'single_import_per_statement' => [
'group_to_single_imports' => true,
],
'single_line_after_imports' => true,
'single_line_comment_spacing' => true,
'single_line_comment_style' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,9 @@ final class Php80Test extends ExplicitRuleSetTestCase
'property',
],
],
'single_import_per_statement' => true,
'single_import_per_statement' => [
'group_to_single_imports' => true,
],
'single_line_after_imports' => true,
'single_line_comment_spacing' => true,
'single_line_comment_style' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,9 @@ final class Php81Test extends ExplicitRuleSetTestCase
'property',
],
],
'single_import_per_statement' => true,
'single_import_per_statement' => [
'group_to_single_imports' => true,
],
'single_line_after_imports' => true,
'single_line_comment_spacing' => true,
'single_line_comment_style' => [
Expand Down

0 comments on commit ac1567a

Please sign in to comment.