diff --git a/CHANGELOG.md b/CHANGELOG.md index 687e4e04..d8557774 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ For a full diff see [`2.6.1...main`][2.6.1...main]. * 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] +* Enabled `no_trailing_whitespace_in_string` fixer ([#283]), by [@localheinz] ## [`2.6.1`][2.6.1] diff --git a/src/RuleSet/Php71.php b/src/RuleSet/Php71.php index 1225f363..33a3976e 100644 --- a/src/RuleSet/Php71.php +++ b/src/RuleSet/Php71.php @@ -227,7 +227,7 @@ final class Php71 extends AbstractRuleSet 'no_trailing_comma_in_singleline_array' => true, 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, - 'no_trailing_whitespace_in_string' => false, + 'no_trailing_whitespace_in_string' => true, 'no_unneeded_control_parentheses' => true, 'no_unneeded_curly_braces' => true, 'no_unneeded_final_method' => true, diff --git a/src/RuleSet/Php73.php b/src/RuleSet/Php73.php index cc53d26a..4c7feafb 100644 --- a/src/RuleSet/Php73.php +++ b/src/RuleSet/Php73.php @@ -227,7 +227,7 @@ final class Php73 extends AbstractRuleSet 'no_trailing_comma_in_singleline_array' => true, 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, - 'no_trailing_whitespace_in_string' => false, + 'no_trailing_whitespace_in_string' => true, 'no_unneeded_control_parentheses' => true, 'no_unneeded_curly_braces' => true, 'no_unneeded_final_method' => true, diff --git a/src/RuleSet/Php74.php b/src/RuleSet/Php74.php index 0c6f541b..9b3d8bec 100644 --- a/src/RuleSet/Php74.php +++ b/src/RuleSet/Php74.php @@ -227,7 +227,7 @@ final class Php74 extends AbstractRuleSet 'no_trailing_comma_in_singleline_array' => true, 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, - 'no_trailing_whitespace_in_string' => false, + 'no_trailing_whitespace_in_string' => true, 'no_unneeded_control_parentheses' => true, 'no_unneeded_curly_braces' => true, 'no_unneeded_final_method' => true, diff --git a/test/Unit/RuleSet/Php71Test.php b/test/Unit/RuleSet/Php71Test.php index 2500cf7f..8e6e7dea 100644 --- a/test/Unit/RuleSet/Php71Test.php +++ b/test/Unit/RuleSet/Php71Test.php @@ -233,7 +233,7 @@ final class Php71Test extends AbstractRuleSetTestCase 'no_trailing_comma_in_singleline_array' => true, 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, - 'no_trailing_whitespace_in_string' => false, + 'no_trailing_whitespace_in_string' => true, 'no_unneeded_control_parentheses' => true, 'no_unneeded_curly_braces' => true, 'no_unneeded_final_method' => true, diff --git a/test/Unit/RuleSet/Php73Test.php b/test/Unit/RuleSet/Php73Test.php index e6c24c90..85df196d 100644 --- a/test/Unit/RuleSet/Php73Test.php +++ b/test/Unit/RuleSet/Php73Test.php @@ -233,7 +233,7 @@ final class Php73Test extends AbstractRuleSetTestCase 'no_trailing_comma_in_singleline_array' => true, 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, - 'no_trailing_whitespace_in_string' => false, + 'no_trailing_whitespace_in_string' => true, 'no_unneeded_control_parentheses' => true, 'no_unneeded_curly_braces' => true, 'no_unneeded_final_method' => true, diff --git a/test/Unit/RuleSet/Php74Test.php b/test/Unit/RuleSet/Php74Test.php index 48fdf308..514120c4 100644 --- a/test/Unit/RuleSet/Php74Test.php +++ b/test/Unit/RuleSet/Php74Test.php @@ -233,7 +233,7 @@ final class Php74Test extends AbstractRuleSetTestCase 'no_trailing_comma_in_singleline_array' => true, 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, - 'no_trailing_whitespace_in_string' => false, + 'no_trailing_whitespace_in_string' => true, 'no_unneeded_control_parentheses' => true, 'no_unneeded_curly_braces' => true, 'no_unneeded_final_method' => true,