You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1.1 KiB
25 lines
1.1 KiB
1 year ago
|
<?php
|
||
|
|
||
|
return PhpCsFixer\Config::create()
|
||
|
->setRules([
|
||
|
'@Symfony' => true,
|
||
|
'@Symfony:risky' => true,
|
||
|
'@PHPUnit48Migration:risky' => true,
|
||
|
'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
|
||
|
'array_syntax' => ['syntax' => 'short'],
|
||
|
'fopen_flags' => false,
|
||
|
'ordered_imports' => true,
|
||
|
'protected_to_private' => false,
|
||
|
// Part of @Symfony:risky in PHP-CS-Fixer 2.13.0. To be removed from the config file once upgrading
|
||
|
'native_function_invocation' => ['include' => ['@compiler_optimized'], 'scope' => 'namespaced'],
|
||
|
// Part of future @Symfony ruleset in PHP-CS-Fixer To be removed from the config file once upgrading
|
||
|
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
|
||
|
])
|
||
|
->setRiskyAllowed(true)
|
||
|
->setFinder(
|
||
|
PhpCsFixer\Finder::create()
|
||
|
->in(__DIR__)
|
||
|
->name('*.php')
|
||
|
)
|
||
|
;
|