From 8118038aac05f69e9d02c20f9c96b9bd1b1109d4 Mon Sep 17 00:00:00 2001 From: Laurent Laville Date: Fri, 6 Oct 2023 07:38:55 +0000 Subject: [PATCH] fix QA report #193 --- .changes/unreleased/Fixed-20231006-073806.yaml | 4 ++++ .php-cs-fixer.dist.php | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .changes/unreleased/Fixed-20231006-073806.yaml 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()