Skip to content

Commit 7a4590f

Browse files
committed
Turn off rule 'modernize_strpos' and cleanup config
1 parent 0d6a5f7 commit 7a4590f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

.php-cs-fixer.dist.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,12 @@
44

55
return (new PhpCsFixer\Config())
66
->setFinder($finder)
7-
->setRules(array(
7+
->setRules([
88
'@Symfony' => true,
99
'@Symfony:risky' => true,
1010
'fopen_flags' => false,
11-
'@PHPUnit48Migration:risky' => true,
12-
'array_syntax' => ['syntax' => 'short'],
13-
'ordered_imports' => true,
14-
'php_unit_no_expectation_annotation' => false, // part of `PHPUnitXYMigration:risky` ruleset, to be enabled when PHPUnit 4.x support will be dropped, as we don't want to rewrite exceptions handling twice
15-
'nullable_type_declaration_for_default_null_value' => true,
11+
'modernize_strpos' => false, // requires PHP 8
1612
'protected_to_private' => false,
17-
))
13+
])
1814
->setRiskyAllowed(true)
1915
;

0 commit comments

Comments
 (0)