minor #39772 Simplify PHP CS Fixer config (keradus)
This PR was merged into the 4.4 branch.
Discussion
----------
Simplify PHP CS Fixer config
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | n/a
| License | MIT
| Doc PR |
same rules, just written in easier way
Commits
-------
95e33edc1c
Simplify PHP CS Fixer config
This commit is contained in:
commit
6fbfaf67b1
@ -6,18 +6,13 @@ if (!file_exists(__DIR__.'/src')) {
|
|||||||
|
|
||||||
return PhpCsFixer\Config::create()
|
return PhpCsFixer\Config::create()
|
||||||
->setRules([
|
->setRules([
|
||||||
|
'@PHP71Migration' => true,
|
||||||
|
'@PHPUnit75Migration:risky' => true,
|
||||||
'@Symfony' => true,
|
'@Symfony' => true,
|
||||||
'@Symfony:risky' => 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,
|
'protected_to_private' => false,
|
||||||
'native_constant_invocation' => true,
|
'native_constant_invocation' => true,
|
||||||
'combine_nested_dirname' => true,
|
|
||||||
'list_syntax' => ['syntax' => 'short'],
|
'list_syntax' => ['syntax' => 'short'],
|
||||||
'visibility_required' => ['property', 'method', 'const'],
|
|
||||||
'ternary_to_null_coalescing' => true,
|
|
||||||
])
|
])
|
||||||
->setRiskyAllowed(true)
|
->setRiskyAllowed(true)
|
||||||
->setFinder(
|
->setFinder(
|
||||||
|
Reference in New Issue
Block a user