DX: upgrade rules for phpcs

This commit is contained in:
Julien Fastré 2023-02-07 22:11:58 +01:00
parent afd2235254
commit e5c183aa44
Signed by: julienfastre
GPG Key ID: BDE2190974723FCB

View File

@ -82,9 +82,36 @@ $riskyRules = [
$untilFullSwitchToPhp8 = [
'blank_line_between_import_groups' => false,
'declare_strict_types' => true,
'multiline_whitespace_before_semicolons' => false,
'phpdoc_no_empty_return' => false,
];
$rules = array_merge(
[
'@PhpCsFixer' => true,
'@PhpCsFixer:risky' => false,
'@Symfony' => false,
'@Symfony:risky' => false,
'ordered_class_elements' => [
'order' => [
'use_trait',
'constant_public',
'constant_protected',
'constant_private',
'property_public',
'property_protected',
'property_private',
'construct',
'destruct',
'magic',
'phpunit',
'method_public',
'method_protected',
'method_private',
],
'sort_algorithm' => 'alpha',
]
],
$rules,
$riskyRules,
$untilFullSwitchToPhp8,