Skip to content

Commit a0b5d29

Browse files
committed
[BUGFIX] Remove modernize_strpos
This rule breaks code on PHP versions below 8.0 and will be removed again until PHP requirements are raised.
1 parent f34129d commit a0b5d29

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/CsFixerConfig.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ class CsFixerConfig extends Config
5454
'function_typehint_space' => true,
5555
'lowercase_cast' => true,
5656
'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'],
57-
'modernize_strpos' => true,
5857
'modernize_types_casting' => true,
5958
'native_function_casing' => true,
6059
'new_with_braces' => true,

tests/Unit/CsFixerConfigTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testCreateReturnsCorrectClass(): void
2626
$config = CsFixerConfig::create();
2727
self::assertInstanceOf(CsFixerConfig::class, $config);
2828
self::assertTrue($config->getRiskyAllowed());
29-
self::assertCount(52, $config->getRules());
29+
self::assertCount(51, $config->getRules());
3030
}
3131

3232
public function testAddRules(): void

0 commit comments

Comments
 (0)