From 2012887e146bc34f3c53bc835f2bba308fed1da5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Fri, 14 Jan 2022 23:54:53 +0100 Subject: [PATCH] Enhancement: Enable get_class_to_class_keyword fixer --- CHANGELOG.md | 2 ++ src/RuleSet/Php80.php | 2 +- src/RuleSet/Php81.php | 2 +- test/Unit/RuleSet/Php80Test.php | 2 +- test/Unit/RuleSet/Php81Test.php | 2 +- 5 files changed, 6 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 155e5e98..224b14fc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ For a full diff see [`3.4.0...main`][3.4.0...main]. ### Changed * Updated `friendsofphp/php-cs-fixer` ([#545]), by [@dependabot] +* Enabled `get_class_to_class_keyword` fixer, ([#546]), by [@localheinz] ### Fixed @@ -560,6 +561,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#540]: https://github.com/ergebnis/php-cs-fixer-config/pull/540 [#544]: https://github.com/ergebnis/php-cs-fixer-config/pull/544 [#545]: https://github.com/ergebnis/php-cs-fixer-config/pull/545 +[#546]: https://github.com/ergebnis/php-cs-fixer-config/pull/546 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php80.php b/src/RuleSet/Php80.php index b22b7d75..8e993665 100644 --- a/src/RuleSet/Php80.php +++ b/src/RuleSet/Php80.php @@ -198,7 +198,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'inheritdocs' => 'inheritdoc', ], ], - 'get_class_to_class_keyword' => false, + 'get_class_to_class_keyword' => true, 'global_namespace_import' => false, 'group_import' => false, 'header_comment' => false, diff --git a/src/RuleSet/Php81.php b/src/RuleSet/Php81.php index 367f9b6f..771986ca 100644 --- a/src/RuleSet/Php81.php +++ b/src/RuleSet/Php81.php @@ -198,7 +198,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet 'inheritdocs' => 'inheritdoc', ], ], - 'get_class_to_class_keyword' => false, + 'get_class_to_class_keyword' => true, 'global_namespace_import' => false, 'group_import' => false, 'header_comment' => false, diff --git a/test/Unit/RuleSet/Php80Test.php b/test/Unit/RuleSet/Php80Test.php index ad32c41d..20a6be03 100644 --- a/test/Unit/RuleSet/Php80Test.php +++ b/test/Unit/RuleSet/Php80Test.php @@ -204,7 +204,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'inheritdocs' => 'inheritdoc', ], ], - 'get_class_to_class_keyword' => false, + 'get_class_to_class_keyword' => true, 'global_namespace_import' => false, 'group_import' => false, 'header_comment' => false, diff --git a/test/Unit/RuleSet/Php81Test.php b/test/Unit/RuleSet/Php81Test.php index 1dd5b527..5107a2b9 100644 --- a/test/Unit/RuleSet/Php81Test.php +++ b/test/Unit/RuleSet/Php81Test.php @@ -204,7 +204,7 @@ final class Php81Test extends ExplicitRuleSetTestCase 'inheritdocs' => 'inheritdoc', ], ], - 'get_class_to_class_keyword' => false, + 'get_class_to_class_keyword' => true, 'global_namespace_import' => false, 'group_import' => false, 'header_comment' => false,