Simplify PHP CS Fixer config

This commit is contained in:
Dariusz Rumiński 2021-01-10 03:20:21 +01:00 committed by GitHub
parent 3ee310f20a
commit 95e33edc1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 7 deletions

View File

@ -6,18 +6,13 @@ if (!file_exists(__DIR__.'/src')) {
return PhpCsFixer\Config::create()
->setRules([
'@PHP71Migration' => true,
'@PHPUnit75Migration:risky' => true,
'@Symfony' => true,
'@Symfony:risky' => true,
'@PHPUnit75Migration:risky' => true,
'php_unit_dedicate_assert' => ['target' => '5.6'],
'array_syntax' => ['syntax' => 'short'],
'fopen_flags' => false,
'protected_to_private' => false,
'native_constant_invocation' => true,
'combine_nested_dirname' => true,
'list_syntax' => ['syntax' => 'short'],
'visibility_required' => ['property', 'method', 'const'],
'ternary_to_null_coalescing' => true,
])
->setRiskyAllowed(true)
->setFinder(