From 4b417b6855c539958f1437874b3752c2cc8d14b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Mon, 11 Jul 2022 13:21:12 +0200 Subject: [PATCH] Enhancement: Configure single_space_after_construct fixer to include type_colon in constructs option --- CHANGELOG.md | 2 ++ src/RuleSet/Php74.php | 1 + src/RuleSet/Php80.php | 1 + src/RuleSet/Php81.php | 1 + test/Unit/RuleSet/Php74Test.php | 1 + test/Unit/RuleSet/Php80Test.php | 1 + test/Unit/RuleSet/Php81Test.php | 1 + 7 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 14de6c14..87ad6549 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ For a full diff see [`4.4.0...main`][4.4.0...main]. - Enabled `statement_indentation` fixer ([#624]), by [@localheinz] - Configured `no_unneeded_control_parentheses` fixer to include `negative_instanceof` and `others` in the `statements` option ([#625]), by [@localheinz] - Configured `trailing_comma_in_multiline` fixer to include `match` in the `elements` option ([#626]), by [@localheinz] +- Configured `single_space_after_construct` fixer to include `type_colon` in the `constructs` option ([#627]), by [@localheinz] ## [`4.4.0`][4.4.0] @@ -651,6 +652,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#624]: https://github.com/ergebnis/php-cs-fixer-config/pull/624 [#625]: https://github.com/ergebnis/php-cs-fixer-config/pull/625 [#626]: https://github.com/ergebnis/php-cs-fixer-config/pull/626 +[#627]: https://github.com/ergebnis/php-cs-fixer-config/pull/627 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 974071e5..aad7a677 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -694,6 +694,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'throw', 'trait', 'try', + 'type_colon', 'use', 'use_lambda', 'use_trait', diff --git a/src/RuleSet/Php80.php b/src/RuleSet/Php80.php index 930771d3..8f79cb9c 100644 --- a/src/RuleSet/Php80.php +++ b/src/RuleSet/Php80.php @@ -694,6 +694,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'throw', 'trait', 'try', + 'type_colon', 'use', 'use_lambda', 'use_trait', diff --git a/src/RuleSet/Php81.php b/src/RuleSet/Php81.php index 3676b9cf..122eec6d 100644 --- a/src/RuleSet/Php81.php +++ b/src/RuleSet/Php81.php @@ -697,6 +697,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet 'throw', 'trait', 'try', + 'type_colon', 'use', 'use_lambda', 'use_trait', diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 69afccd0..ae1b9107 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -700,6 +700,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'throw', 'trait', 'try', + 'type_colon', 'use', 'use_lambda', 'use_trait', diff --git a/test/Unit/RuleSet/Php80Test.php b/test/Unit/RuleSet/Php80Test.php index 2b49ac71..77b78b75 100644 --- a/test/Unit/RuleSet/Php80Test.php +++ b/test/Unit/RuleSet/Php80Test.php @@ -700,6 +700,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'throw', 'trait', 'try', + 'type_colon', 'use', 'use_lambda', 'use_trait', diff --git a/test/Unit/RuleSet/Php81Test.php b/test/Unit/RuleSet/Php81Test.php index b080d994..d55cbd22 100644 --- a/test/Unit/RuleSet/Php81Test.php +++ b/test/Unit/RuleSet/Php81Test.php @@ -703,6 +703,7 @@ final class Php81Test extends ExplicitRuleSetTestCase 'throw', 'trait', 'try', + 'type_colon', 'use', 'use_lambda', 'use_trait',