From c1f1e76a133a38fe881c5f833cdc3822c76f6016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 3 Apr 2023 09:28:49 +0200 Subject: [PATCH] Fix: Configure constructs_preceded_by_a_single_space option of single_space_around_construct fixer to retain previous configuration --- src/RuleSet/Php80.php | 4 +++- src/RuleSet/Php81.php | 4 +++- src/RuleSet/Php82.php | 4 +++- test/Unit/RuleSet/Php80Test.php | 4 +++- test/Unit/RuleSet/Php81Test.php | 4 +++- test/Unit/RuleSet/Php82Test.php | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/src/RuleSet/Php80.php b/src/RuleSet/Php80.php index d78749af..8eb135cc 100644 --- a/src/RuleSet/Php80.php +++ b/src/RuleSet/Php80.php @@ -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' => [ diff --git a/src/RuleSet/Php81.php b/src/RuleSet/Php81.php index c9498a34..a653278f 100644 --- a/src/RuleSet/Php81.php +++ b/src/RuleSet/Php81.php @@ -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' => [ diff --git a/src/RuleSet/Php82.php b/src/RuleSet/Php82.php index 829e2435..16b467b1 100644 --- a/src/RuleSet/Php82.php +++ b/src/RuleSet/Php82.php @@ -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' => [ diff --git a/test/Unit/RuleSet/Php80Test.php b/test/Unit/RuleSet/Php80Test.php index b73d9bd5..25543777 100644 --- a/test/Unit/RuleSet/Php80Test.php +++ b/test/Unit/RuleSet/Php80Test.php @@ -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' => [ diff --git a/test/Unit/RuleSet/Php81Test.php b/test/Unit/RuleSet/Php81Test.php index caa43afd..445abf01 100644 --- a/test/Unit/RuleSet/Php81Test.php +++ b/test/Unit/RuleSet/Php81Test.php @@ -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' => [ diff --git a/test/Unit/RuleSet/Php82Test.php b/test/Unit/RuleSet/Php82Test.php index fe3d40c5..578b81ed 100644 --- a/test/Unit/RuleSet/Php82Test.php +++ b/test/Unit/RuleSet/Php82Test.php @@ -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' => [