diff --git a/CHANGELOG.md b/CHANGELOG.md index 35bd9aac..3f645a98 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ For a full diff see [`4.0.0...main`][4.0.0...main]. ### Changed - Updated `friendsofphp/php-cs-fixer` ([#565]), by [@dependabot] +- Enabled `class_reference_name_casing` fixer, ([#566]), by [@localheinz] ## [`4.0.0`][4.0.0] @@ -573,6 +574,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#545]: https://github.com/ergebnis/php-cs-fixer-config/pull/545 [#553]: https://github.com/ergebnis/php-cs-fixer-config/pull/553 [#565]: https://github.com/ergebnis/php-cs-fixer-config/pull/565 +[#566]: https://github.com/ergebnis/php-cs-fixer-config/pull/566 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 97e45e82..416f1be1 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -81,7 +81,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet 'single_line' => false, 'space_before_parenthesis' => false, ], - 'class_reference_name_casing' => false, + 'class_reference_name_casing' => true, 'clean_namespace' => true, 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, diff --git a/src/RuleSet/Php80.php b/src/RuleSet/Php80.php index c7d890ff..8a13919c 100644 --- a/src/RuleSet/Php80.php +++ b/src/RuleSet/Php80.php @@ -81,7 +81,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet 'single_line' => false, 'space_before_parenthesis' => false, ], - 'class_reference_name_casing' => false, + 'class_reference_name_casing' => true, 'clean_namespace' => true, 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, diff --git a/src/RuleSet/Php81.php b/src/RuleSet/Php81.php index 0a0ac8eb..32f6af76 100644 --- a/src/RuleSet/Php81.php +++ b/src/RuleSet/Php81.php @@ -81,7 +81,7 @@ final class Php81 extends AbstractRuleSet implements ExplicitRuleSet 'single_line' => false, 'space_before_parenthesis' => false, ], - 'class_reference_name_casing' => false, + 'class_reference_name_casing' => true, 'clean_namespace' => true, 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 34cc443d..3c7fd900 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -87,7 +87,7 @@ final class Php74Test extends ExplicitRuleSetTestCase 'single_line' => false, 'space_before_parenthesis' => false, ], - 'class_reference_name_casing' => false, + 'class_reference_name_casing' => true, 'clean_namespace' => true, 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, diff --git a/test/Unit/RuleSet/Php80Test.php b/test/Unit/RuleSet/Php80Test.php index ecd06391..20536978 100644 --- a/test/Unit/RuleSet/Php80Test.php +++ b/test/Unit/RuleSet/Php80Test.php @@ -87,7 +87,7 @@ final class Php80Test extends ExplicitRuleSetTestCase 'single_line' => false, 'space_before_parenthesis' => false, ], - 'class_reference_name_casing' => false, + 'class_reference_name_casing' => true, 'clean_namespace' => true, 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, diff --git a/test/Unit/RuleSet/Php81Test.php b/test/Unit/RuleSet/Php81Test.php index 79da063f..3487a416 100644 --- a/test/Unit/RuleSet/Php81Test.php +++ b/test/Unit/RuleSet/Php81Test.php @@ -87,7 +87,7 @@ final class Php81Test extends ExplicitRuleSetTestCase 'single_line' => false, 'space_before_parenthesis' => false, ], - 'class_reference_name_casing' => false, + 'class_reference_name_casing' => true, 'clean_namespace' => true, 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true,