diff --git a/CHANGELOG.md b/CHANGELOG.md index d8557774..4658a004 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ For a full diff see [`2.6.1...main`][2.6.1...main]. * Enabled `lambda_not_used_import` fixer ([#281]), by [@localheinz] * Enabled `no_alias_language_construct_call` fixer ([#282]), by [@localheinz] * Enabled `no_trailing_whitespace_in_string` fixer ([#283]), by [@localheinz] +* Enabled `no_useless_sprintf` fixer ([#284]), by [@localheinz] ## [`2.6.1`][2.6.1] @@ -234,6 +235,8 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0]. [#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 +[#283]: https://github.com/ergebnis/php-cs-fixer-config/pull/283 +[#284]: https://github.com/ergebnis/php-cs-fixer-config/pull/284 [@dependabot]: https://github.com/apps/dependabot [@linuxjuggler]: https://github.com/linuxjuggler diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index 33a3976e..7c668e18 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -237,7 +237,7 @@ final class Php71 extends AbstractRuleSet 'no_unused_imports' => true, 'no_useless_else' => true, 'no_useless_return' => true, - 'no_useless_sprintf' => false, + 'no_useless_sprintf' => true, 'no_whitespace_before_comma_in_array' => true, 'no_whitespace_in_blank_line' => true, 'non_printable_character' => true, diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index 4c7feafb..730ec1e7 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -237,7 +237,7 @@ final class Php73 extends AbstractRuleSet 'no_unused_imports' => true, 'no_useless_else' => true, 'no_useless_return' => true, - 'no_useless_sprintf' => false, + 'no_useless_sprintf' => true, 'no_whitespace_before_comma_in_array' => true, 'no_whitespace_in_blank_line' => true, 'non_printable_character' => true, diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 9b3d8bec..2703f33a 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -237,7 +237,7 @@ final class Php74 extends AbstractRuleSet 'no_unused_imports' => true, 'no_useless_else' => true, 'no_useless_return' => true, - 'no_useless_sprintf' => false, + 'no_useless_sprintf' => true, 'no_whitespace_before_comma_in_array' => true, 'no_whitespace_in_blank_line' => true, 'non_printable_character' => true, diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index 8e6e7dea..bcfbf958 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -243,7 +243,7 @@ final class Php71Test extends AbstractRuleSetTestCase 'no_unused_imports' => true, 'no_useless_else' => true, 'no_useless_return' => true, - 'no_useless_sprintf' => false, + 'no_useless_sprintf' => true, 'no_whitespace_before_comma_in_array' => true, 'no_whitespace_in_blank_line' => true, 'non_printable_character' => true, diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index 85df196d..18852b61 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -243,7 +243,7 @@ final class Php73Test extends AbstractRuleSetTestCase 'no_unused_imports' => true, 'no_useless_else' => true, 'no_useless_return' => true, - 'no_useless_sprintf' => false, + 'no_useless_sprintf' => true, 'no_whitespace_before_comma_in_array' => true, 'no_whitespace_in_blank_line' => true, 'non_printable_character' => true, diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 514120c4..162c5341 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -243,7 +243,7 @@ final class Php74Test extends AbstractRuleSetTestCase 'no_unused_imports' => true, 'no_useless_else' => true, 'no_useless_return' => true, - 'no_useless_sprintf' => false, + 'no_useless_sprintf' => true, 'no_whitespace_before_comma_in_array' => true, 'no_whitespace_in_blank_line' => true, 'non_printable_character' => true,