Skip to content

Commit 08d1e9a

Browse files
committed
Enhancement: Enable stringable_for_to_string fixer
1 parent d606408 commit 08d1e9a

File tree

13 files changed

+14
-12
lines changed

13 files changed

+14
-12
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ For a full diff see [`6.56.1...main`][6.56.1...main].
1111
### Changed
1212

1313
- Updated `friendsofphp/php-cs-fixer` ([#1318]), by [@dependabot]
14+
- Enabled `stringable_for_to_string fixer` ([#1321]), by [@localheinz]
1415

1516
## [`6.56.1`][6.56.1]
1617

@@ -2108,6 +2109,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
21082109
[#1306]: https://github.com/ergebnis/php-cs-fixer-config/pull/1306
21092110
[#1309]: https://github.com/ergebnis/php-cs-fixer-config/pull/1309
21102111
[#1318]: https://github.com/ergebnis/php-cs-fixer-config/pull/1318
2112+
[#1321]: https://github.com/ergebnis/php-cs-fixer-config/pull/1321
21112113

21122114
[@dependabot]: https://github.com/apps/dependabot
21132115
[@linuxjuggler]: https://github.com/linuxjuggler

src/RuleSet/Php80.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -883,7 +883,7 @@ public static function create(): RuleSet
883883
],
884884
'string_length_to_empty' => true,
885885
'string_line_ending' => true,
886-
'stringable_for_to_string' => false,
886+
'stringable_for_to_string' => true,
887887
'switch_case_semicolon_to_colon' => true,
888888
'switch_case_space' => true,
889889
'switch_continue_to_break' => true,

src/RuleSet/Php81.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ public static function create(): RuleSet
886886
],
887887
'string_length_to_empty' => true,
888888
'string_line_ending' => true,
889-
'stringable_for_to_string' => false,
889+
'stringable_for_to_string' => true,
890890
'switch_case_semicolon_to_colon' => true,
891891
'switch_case_space' => true,
892892
'switch_continue_to_break' => true,

src/RuleSet/Php82.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -886,7 +886,7 @@ public static function create(): RuleSet
886886
],
887887
'string_length_to_empty' => true,
888888
'string_line_ending' => true,
889-
'stringable_for_to_string' => false,
889+
'stringable_for_to_string' => true,
890890
'switch_case_semicolon_to_colon' => true,
891891
'switch_case_space' => true,
892892
'switch_continue_to_break' => true,

src/RuleSet/Php83.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -888,7 +888,7 @@ public static function create(): RuleSet
888888
],
889889
'string_length_to_empty' => true,
890890
'string_line_ending' => true,
891-
'stringable_for_to_string' => false,
891+
'stringable_for_to_string' => true,
892892
'switch_case_semicolon_to_colon' => true,
893893
'switch_case_space' => true,
894894
'switch_continue_to_break' => true,

src/RuleSet/Php84.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ public static function create(): RuleSet
893893
],
894894
'string_length_to_empty' => true,
895895
'string_line_ending' => true,
896-
'stringable_for_to_string' => false,
896+
'stringable_for_to_string' => true,
897897
'switch_case_semicolon_to_colon' => true,
898898
'switch_case_space' => true,
899899
'switch_continue_to_break' => true,

src/RuleSet/Php85.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ public static function create(): RuleSet
893893
],
894894
'string_length_to_empty' => true,
895895
'string_line_ending' => true,
896-
'stringable_for_to_string' => false,
896+
'stringable_for_to_string' => true,
897897
'switch_case_semicolon_to_colon' => true,
898898
'switch_case_space' => true,
899899
'switch_continue_to_break' => true,

test/Unit/RuleSet/Php80Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -905,7 +905,7 @@ protected function expectedRules(): Rules
905905
],
906906
'string_length_to_empty' => true,
907907
'string_line_ending' => true,
908-
'stringable_for_to_string' => false,
908+
'stringable_for_to_string' => true,
909909
'switch_case_semicolon_to_colon' => true,
910910
'switch_case_space' => true,
911911
'switch_continue_to_break' => true,

test/Unit/RuleSet/Php81Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ protected function expectedRules(): Rules
908908
],
909909
'string_length_to_empty' => true,
910910
'string_line_ending' => true,
911-
'stringable_for_to_string' => false,
911+
'stringable_for_to_string' => true,
912912
'switch_case_semicolon_to_colon' => true,
913913
'switch_case_space' => true,
914914
'switch_continue_to_break' => true,

test/Unit/RuleSet/Php82Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,7 @@ protected function expectedRules(): Rules
908908
],
909909
'string_length_to_empty' => true,
910910
'string_line_ending' => true,
911-
'stringable_for_to_string' => false,
911+
'stringable_for_to_string' => true,
912912
'switch_case_semicolon_to_colon' => true,
913913
'switch_case_space' => true,
914914
'switch_continue_to_break' => true,

0 commit comments

Comments
 (0)