Skip to content

Commit

Permalink
Merge pull request #503 from ergebnis/feature/string-length-to-empty
Browse files Browse the repository at this point in the history
Enhancement: Enable `string_length_to_empty` fixer
  • Loading branch information
localheinz authored Oct 5, 2021
2 parents 46774ff + 54b2de8 commit b8cf038
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 8 deletions.
12 changes: 10 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

## Unreleased

For a full diff see [`3.0.2...main`][3.0.2...main].
For a full diff see [`3.2.0...main`][3.2.0...main].

## [`3.2.0`][3.2.0]

For a full diff see [`3.1.0...3.2.0`][3.1.0...3.2.0].

### Changed

Expand All @@ -17,6 +21,7 @@ For a full diff see [`3.0.2...main`][3.0.2...main].
* Enabled `integer_literal_case` fixer ([#500]), by [@localheinz]
* Enabled `modernize_strpos` fixer for `Php80` rule set ([#501]), by [@localheinz]
* Enabled `no_space_around_double_colon` fixer ([#502]), by [@localheinz]
* Enabled `string_length_to_empty` fixer ([#503]), by [@localheinz]

### Fixed

Expand Down Expand Up @@ -379,6 +384,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[3.0.1]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/3.0.1
[3.0.2]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/3.0.2
[3.1.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/3.1.0
[3.2.0]: https://github.com/ergebnis/php-cs-fixer-config/releases/tag/3.2.0

[d899e77...1.0.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/d899e77...1.0.0
[1.0.0...1.1.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/1.0.0...1.1.0
Expand Down Expand Up @@ -412,7 +418,8 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[3.0.0...3.0.1]: https://github.com/ergebnis/php-cs-fixer-config/compare/3.0.0...3.0.1
[3.0.1...3.0.2]: https://github.com/ergebnis/php-cs-fixer-config/compare/3.0.1...3.0.2
[3.0.2...3.1.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/3.0.2...3.1.0
[3.1.0...main]: https://github.com/ergebnis/php-cs-fixer-config/compare/3.1.0...main
[3.1.0...3.2.0]: https://github.com/ergebnis/php-cs-fixer-config/compare/3.1.0...3.2.0
[3.2.0...main]: https://github.com/ergebnis/php-cs-fixer-config/compare/3.2.0...main

[#3]: https://github.com/ergebnis/php-cs-fixer-config/pull/3
[#14]: https://github.com/ergebnis/php-cs-fixer-config/pull/14
Expand Down Expand Up @@ -508,6 +515,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#500]: https://github.com/ergebnis/php-cs-fixer-config/pull/500
[#501]: https://github.com/ergebnis/php-cs-fixer-config/pull/501
[#502]: https://github.com/ergebnis/php-cs-fixer-config/pull/502
[#503]: https://github.com/ergebnis/php-cs-fixer-config/pull/503

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php73.php
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ final class Php73 extends AbstractRuleSet implements ExplicitRuleSet
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
'string_length_to_empty' => false,
'string_length_to_empty' => true,
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php74.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ final class Php74 extends AbstractRuleSet implements ExplicitRuleSet
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
'string_length_to_empty' => false,
'string_length_to_empty' => true,
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ final class Php80 extends AbstractRuleSet implements ExplicitRuleSet
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
'string_length_to_empty' => false,
'string_length_to_empty' => true,
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php73Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,7 @@ final class Php73Test extends ExplicitRuleSetTestCase
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
'string_length_to_empty' => false,
'string_length_to_empty' => true,
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php74Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ final class Php74Test extends ExplicitRuleSetTestCase
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
'string_length_to_empty' => false,
'string_length_to_empty' => true,
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php80Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ final class Php80Test extends ExplicitRuleSetTestCase
'static_lambda' => true,
'strict_comparison' => true,
'strict_param' => true,
'string_length_to_empty' => false,
'string_length_to_empty' => true,
'string_line_ending' => true,
'switch_case_semicolon_to_colon' => true,
'switch_case_space' => true,
Expand Down

0 comments on commit b8cf038

Please sign in to comment.