From 7fe5a88c7b4ab1bc9e7fd91cf094de933c33fdab Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Mon, 18 Sep 2023 17:46:03 +0200 Subject: [PATCH] replace deprecated php-cs-fixer rules --- .php-cs-fixer.dist.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index c241489..36340cb 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -34,7 +34,7 @@ 'no_break_comment' => true, 'no_closing_tag' => true, 'no_spaces_after_function_name' => true, - 'no_spaces_inside_parenthesis' => true, + 'spaces_inside_parentheses' => ['space' => 'none'], 'no_trailing_whitespace' => true, 'no_trailing_whitespace_in_comment' => true, 'single_blank_line_at_eof' => true, @@ -55,7 +55,7 @@ 'class_attributes_separation' => ['elements' => ['method' => 'one']], 'concat_space' => ['spacing' => 'one'], 'declare_equal_normalize' => true, - 'function_typehint_space' => true, + 'type_declaration_spaces' => ['elements' => ['function', 'property']], 'include' => true, 'lowercase_cast' => true, 'lowercase_static_reference' => true, @@ -124,7 +124,7 @@ 'return_type_declaration' => true, 'semicolon_after_instruction' => true, 'short_scalar_cast' => true, - 'single_blank_line_before_namespace' => true, + 'blank_lines_before_namespace' => ['min_line_breaks' => 2, 'max_line_breaks' => 2], 'single_line_comment_style' => [ 'comment_types' => ['hash'], ],