Skip to content

Commit 9b4dcb0

Browse files
authored
Merge pull request #1154 from ergebnis/feature/modernize-strpos
Enhancement: Enable `modernize_stripos` option of `modernize_strpos` fixer
2 parents 3e56938 + 8378d7b commit 9b4dcb0

11 files changed

+13
-11
lines changed

CHANGELOG.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ For a full diff see [`6.41.0...main`][6.41.0...main].
1111
### Changed
1212

1313
- Updated `friendsofphp/php-cs-fixer` ([#1153]), by [@dependabot]
14-
-
14+
- Enabled `modernize_stripos` option of `modernize_strpos fixer` ([#1154]), by [@localheinz]
15+
1516
## [`6.41.0`][6.41.0]
1617

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

18161818
[@dependabot]: https://github.com/apps/dependabot
18171819
[@linuxjuggler]: https://github.com/linuxjuggler

src/RuleSet/Php80.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public static function create(): RuleSet
295295
],
296296
'method_chaining_indentation' => true,
297297
'modernize_strpos' => [
298-
'modernize_stripos' => false,
298+
'modernize_stripos' => true,
299299
],
300300
'modernize_types_casting' => true,
301301
'multiline_comment_opening_closing' => true,

src/RuleSet/Php81.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public static function create(): RuleSet
296296
],
297297
'method_chaining_indentation' => true,
298298
'modernize_strpos' => [
299-
'modernize_stripos' => false,
299+
'modernize_stripos' => true,
300300
],
301301
'modernize_types_casting' => true,
302302
'multiline_comment_opening_closing' => true,

src/RuleSet/Php82.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public static function create(): RuleSet
296296
],
297297
'method_chaining_indentation' => true,
298298
'modernize_strpos' => [
299-
'modernize_stripos' => false,
299+
'modernize_stripos' => true,
300300
],
301301
'modernize_types_casting' => true,
302302
'multiline_comment_opening_closing' => true,

src/RuleSet/Php83.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public static function create(): RuleSet
296296
],
297297
'method_chaining_indentation' => true,
298298
'modernize_strpos' => [
299-
'modernize_stripos' => false,
299+
'modernize_stripos' => true,
300300
],
301301
'modernize_types_casting' => true,
302302
'multiline_comment_opening_closing' => true,

src/RuleSet/Php84.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public static function create(): RuleSet
296296
],
297297
'method_chaining_indentation' => true,
298298
'modernize_strpos' => [
299-
'modernize_stripos' => false,
299+
'modernize_stripos' => true,
300300
],
301301
'modernize_types_casting' => true,
302302
'multiline_comment_opening_closing' => true,

test/Unit/RuleSet/Php80Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ protected function expectedRules(): Rules
318318
],
319319
'method_chaining_indentation' => true,
320320
'modernize_strpos' => [
321-
'modernize_stripos' => false,
321+
'modernize_stripos' => true,
322322
],
323323
'modernize_types_casting' => true,
324324
'multiline_comment_opening_closing' => true,

test/Unit/RuleSet/Php81Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ protected function expectedRules(): Rules
319319
],
320320
'method_chaining_indentation' => true,
321321
'modernize_strpos' => [
322-
'modernize_stripos' => false,
322+
'modernize_stripos' => true,
323323
],
324324
'modernize_types_casting' => true,
325325
'multiline_comment_opening_closing' => true,

test/Unit/RuleSet/Php82Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ protected function expectedRules(): Rules
319319
],
320320
'method_chaining_indentation' => true,
321321
'modernize_strpos' => [
322-
'modernize_stripos' => false,
322+
'modernize_stripos' => true,
323323
],
324324
'modernize_types_casting' => true,
325325
'multiline_comment_opening_closing' => true,

test/Unit/RuleSet/Php83Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ protected function expectedRules(): Rules
319319
],
320320
'method_chaining_indentation' => true,
321321
'modernize_strpos' => [
322-
'modernize_stripos' => false,
322+
'modernize_stripos' => true,
323323
],
324324
'modernize_types_casting' => true,
325325
'multiline_comment_opening_closing' => true,

test/Unit/RuleSet/Php84Test.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ protected function expectedRules(): Rules
319319
],
320320
'method_chaining_indentation' => true,
321321
'modernize_strpos' => [
322-
'modernize_stripos' => false,
322+
'modernize_stripos' => true,
323323
],
324324
'modernize_types_casting' => true,
325325
'multiline_comment_opening_closing' => true,

0 commit comments

Comments
 (0)