Skip to content

Commit

Permalink
Merge pull request #749 from ergebnis/fix/single-space-around-construct
Browse files Browse the repository at this point in the history
Fix: Configure `constructs_preceded_by_a_single_space` option of `single_space_around_construct` fixer to retain previous configuration
  • Loading branch information
localheinz authored Apr 3, 2023
2 parents c4e51ab + c1f1e76 commit 5925ebd
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 3 additions & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,9 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'yield',
'yield_from',
],
'constructs_preceded_by_a_single_space' => [],
'constructs_preceded_by_a_single_space' => [
'use_lambda',
],
],
'single_trait_insert_per_statement' => true,
'space_after_semicolon' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,9 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet
'yield',
'yield_from',
],
'constructs_preceded_by_a_single_space' => [],
'constructs_preceded_by_a_single_space' => [
'use_lambda',
],
],
'single_trait_insert_per_statement' => true,
'space_after_semicolon' => [
Expand Down
4 changes: 3 additions & 1 deletion src/RuleSet/Php82.php
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,9 @@ final class Php82 extends AbstractRuleSet implements ExplicitRuleSet
'yield',
'yield_from',
],
'constructs_preceded_by_a_single_space' => [],
'constructs_preceded_by_a_single_space' => [
'use_lambda',
],
],
'single_trait_insert_per_statement' => true,
'space_after_semicolon' => [
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 @@ -764,7 +764,9 @@ final class Php80Test extends ExplicitRuleSetTestCase
'yield',
'yield_from',
],
'constructs_preceded_by_a_single_space' => [],
'constructs_preceded_by_a_single_space' => [
'use_lambda',
],
],
'single_trait_insert_per_statement' => true,
'space_after_semicolon' => [
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 @@ -766,7 +766,9 @@ final class Php81Test extends ExplicitRuleSetTestCase
'yield',
'yield_from',
],
'constructs_preceded_by_a_single_space' => [],
'constructs_preceded_by_a_single_space' => [
'use_lambda',
],
],
'single_trait_insert_per_statement' => true,
'space_after_semicolon' => [
Expand Down
4 changes: 3 additions & 1 deletion test/Unit/RuleSet/Php82Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -766,7 +766,9 @@ final class Php82Test extends ExplicitRuleSetTestCase
'yield',
'yield_from',
],
'constructs_preceded_by_a_single_space' => [],
'constructs_preceded_by_a_single_space' => [
'use_lambda',
],
],
'single_trait_insert_per_statement' => true,
'space_after_semicolon' => [
Expand Down

0 comments on commit 5925ebd

Please sign in to comment.