diff --git a/.changes/unreleased/Fixed-20231006-073806.yaml b/.changes/unreleased/Fixed-20231006-073806.yaml new file mode 100644 index 00000000..b09d2b2a --- /dev/null +++ b/.changes/unreleased/Fixed-20231006-073806.yaml @@ -0,0 +1,4 @@ +kind: Fixed +body: '[#193](https://github.com/overtrue/phplint/issues/193) : PHP CS Fixer deprecated + rules' +time: 2023-10-06T07:38:06.955795248Z diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 784e7ed5..7360f5d7 100755 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -14,19 +14,22 @@ '@PSR12' => true, 'header_comment' => ['header' => $header], 'blank_line_after_opening_tag' => true, - 'braces' => ['allow_single_line_closure' => true], - 'compact_nullable_typehint' => true, + 'braces_position' => true, + 'compact_nullable_type_declaration' => true, 'concat_space' => ['spacing' => 'one'], 'declare_equal_normalize' => ['space' => 'none'], - 'function_typehint_space' => true, - 'new_with_braces' => true, + 'declare_parentheses' => true, 'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'], + 'new_with_parentheses' => true, 'no_empty_statement' => true, + 'no_extra_blank_lines' => true, 'no_leading_import_slash' => true, 'no_leading_namespace_whitespace' => true, 'no_whitespace_in_blank_line' => true, 'return_type_declaration' => ['space_before' => 'none'], + 'single_space_around_construct' => true, 'single_trait_insert_per_statement' => true, + 'type_declaration_spaces' => true, ]) ->setFinder( PhpCsFixer\Finder::create()