From 184c5d48b1adecad291149ae1b46e83ce4c64917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=B6ller?= Date: Tue, 8 Dec 2020 22:32:53 +0100 Subject: [PATCH] Enhancement: Enable no_alias_language_construct_call fixer --- CHANGELOG.md | 2 ++ src/RuleSet/Php71.php | 2 +- src/RuleSet/Php73.php | 2 +- src/RuleSet/Php74.php | 2 +- test/Unit/RuleSet/Php71Test.php | 2 +- test/Unit/RuleSet/Php73Test.php | 2 +- test/Unit/RuleSet/Php74Test.php | 2 +- 7 files changed, 8 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 82e3dfe7..687e4e04 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ For a full diff see [`2.6.1...main`][2.6.1...main]. * Enabled `array_push` fixer ([#279]), by [@localheinz] * Enabled `clean_namespace` fixer ([#280]), by [@localheinz] * Enabled `lambda_not_used_import` fixer ([#281]), by [@localheinz] +* Enabled `no_alias_language_construct_call` fixer ([#282]), by [@localheinz] ## [`2.6.1`][2.6.1] @@ -231,6 +232,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#279]: https://github.com/ergebnis/php-cs-fixer-config/pull/279 [#280]: https://github.com/ergebnis/php-cs-fixer-config/pull/280 [#281]: https://github.com/ergebnis/php-cs-fixer-config/pull/281 +[#282]: https://github.com/ergebnis/php-cs-fixer-config/pull/282 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index 33dd58b5..1225f363 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -175,7 +175,7 @@ final class Php71 extends AbstractRuleSet 'native_function_type_declaration_casing' => true, 'new_with_braces' => true, 'no_alias_functions' => true, - 'no_alias_language_construct_call' => false, + 'no_alias_language_construct_call' => true, 'no_alternative_syntax' => true, 'no_binary_string' => true, 'no_blank_lines_after_class_opening' => true, diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index cc3497eb..cc53d26a 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -175,7 +175,7 @@ final class Php73 extends AbstractRuleSet 'native_function_type_declaration_casing' => true, 'new_with_braces' => true, 'no_alias_functions' => true, - 'no_alias_language_construct_call' => false, + 'no_alias_language_construct_call' => true, 'no_alternative_syntax' => true, 'no_binary_string' => true, 'no_blank_lines_after_class_opening' => true, diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index f45419a0..0c6f541b 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -175,7 +175,7 @@ final class Php74 extends AbstractRuleSet 'native_function_type_declaration_casing' => true, 'new_with_braces' => true, 'no_alias_functions' => true, - 'no_alias_language_construct_call' => false, + 'no_alias_language_construct_call' => true, 'no_alternative_syntax' => true, 'no_binary_string' => true, 'no_blank_lines_after_class_opening' => true, diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index b9ac66f1..2500cf7f 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -181,7 +181,7 @@ final class Php71Test extends AbstractRuleSetTestCase 'native_function_type_declaration_casing' => true, 'new_with_braces' => true, 'no_alias_functions' => true, - 'no_alias_language_construct_call' => false, + 'no_alias_language_construct_call' => true, 'no_alternative_syntax' => true, 'no_binary_string' => true, 'no_blank_lines_after_class_opening' => true, diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index 90f23531..e6c24c90 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -181,7 +181,7 @@ final class Php73Test extends AbstractRuleSetTestCase 'native_function_type_declaration_casing' => true, 'new_with_braces' => true, 'no_alias_functions' => true, - 'no_alias_language_construct_call' => false, + 'no_alias_language_construct_call' => true, 'no_alternative_syntax' => true, 'no_binary_string' => true, 'no_blank_lines_after_class_opening' => true, diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 9e4a4375..48fdf308 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -181,7 +181,7 @@ final class Php74Test extends AbstractRuleSetTestCase 'native_function_type_declaration_casing' => true, 'new_with_braces' => true, 'no_alias_functions' => true, - 'no_alias_language_construct_call' => false, + 'no_alias_language_construct_call' => true, 'no_alternative_syntax' => true, 'no_binary_string' => true, 'no_blank_lines_after_class_opening' => true,