Skip to content

Commit

Permalink
Enhancement: Enable modernize_stripos option of modernize_strpos fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 15, 2025
1 parent 3e56938 commit 8378d7b
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ For a full diff see [`6.41.0...main`][6.41.0...main].
### Changed

- Updated `friendsofphp/php-cs-fixer` ([#1153]), by [@dependabot]
-
- Enabled `modernize_stripos` option of `modernize_strpos fixer` ([#1154]), by [@localheinz]

## [`6.41.0`][6.41.0]

For a full diff see [`6.40.0...6.41.0`][6.40.0...6.41.0].
Expand Down Expand Up @@ -1812,6 +1813,7 @@ For a full diff see [`d899e77...1.0.0`][d899e77...1.0.0].
[#1148]: https://github.com/ergebnis/php-cs-fixer-config/pull/1148
[#1150]: https://github.com/ergebnis/php-cs-fixer-config/pull/1150
[#1153]: https://github.com/ergebnis/php-cs-fixer-config/pull/1153
[#1154]: https://github.com/ergebnis/php-cs-fixer-config/pull/1154

[@dependabot]: https://github.com/apps/dependabot
[@linuxjuggler]: https://github.com/linuxjuggler
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php80.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public static function create(): RuleSet
],
'method_chaining_indentation' => true,
'modernize_strpos' => [
'modernize_stripos' => false,
'modernize_stripos' => true,
],
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php81.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public static function create(): RuleSet
],
'method_chaining_indentation' => true,
'modernize_strpos' => [
'modernize_stripos' => false,
'modernize_stripos' => true,
],
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php82.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public static function create(): RuleSet
],
'method_chaining_indentation' => true,
'modernize_strpos' => [
'modernize_stripos' => false,
'modernize_stripos' => true,
],
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php83.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public static function create(): RuleSet
],
'method_chaining_indentation' => true,
'modernize_strpos' => [
'modernize_stripos' => false,
'modernize_stripos' => true,
],
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => true,
Expand Down
2 changes: 1 addition & 1 deletion src/RuleSet/Php84.php
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ public static function create(): RuleSet
],
'method_chaining_indentation' => true,
'modernize_strpos' => [
'modernize_stripos' => false,
'modernize_stripos' => true,
],
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => 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 @@ -318,7 +318,7 @@ protected function expectedRules(): Rules
],
'method_chaining_indentation' => true,
'modernize_strpos' => [
'modernize_stripos' => false,
'modernize_stripos' => true,
],
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php81Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ protected function expectedRules(): Rules
],
'method_chaining_indentation' => true,
'modernize_strpos' => [
'modernize_stripos' => false,
'modernize_stripos' => true,
],
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php82Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ protected function expectedRules(): Rules
],
'method_chaining_indentation' => true,
'modernize_strpos' => [
'modernize_stripos' => false,
'modernize_stripos' => true,
],
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php83Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ protected function expectedRules(): Rules
],
'method_chaining_indentation' => true,
'modernize_strpos' => [
'modernize_stripos' => false,
'modernize_stripos' => true,
],
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => true,
Expand Down
2 changes: 1 addition & 1 deletion test/Unit/RuleSet/Php84Test.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ protected function expectedRules(): Rules
],
'method_chaining_indentation' => true,
'modernize_strpos' => [
'modernize_stripos' => false,
'modernize_stripos' => true,
],
'modernize_types_casting' => true,
'multiline_comment_opening_closing' => true,
Expand Down

0 comments on commit 8378d7b

Please sign in to comment.