From 42dd2148a3f30f11b8e81925479113561aa48299 Mon Sep 17 00:00:00 2001 From: Jack Cherng Date: Tue, 5 Mar 2024 16:58:46 +0800 Subject: [PATCH] chore: fix php-cs-fixer deprecated options Signed-off-by: Jack Cherng --- .php-cs-fixer.dist.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 6c8f2f8..23d4af4 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -26,14 +26,13 @@ 'fully_qualified_strict_types' => true, 'linebreak_after_opening_tag' => true, 'list_syntax' => ['syntax' => 'short'], - 'method_argument_space' => ['ensure_fully_multiline' => true], + 'method_argument_space' => ['on_multiline' => 'ensure_fully_multiline'], 'native_constant_invocation' => true, 'native_function_invocation' => true, 'native_function_type_declaration_casing' => true, 'no_alternative_syntax' => true, - 'no_multiline_whitespace_before_semicolons' => true, 'no_null_property_initialization' => true, - 'no_short_echo_tag' => true, + 'echo_tag_syntax' => true, 'no_superfluous_elseif' => true, 'no_trailing_whitespace_in_string' => false, // test cases have trailing spaces 'no_unneeded_control_parentheses' => true, @@ -44,7 +43,6 @@ 'ordered_class_elements' => true, 'ordered_imports' => ['sort_algorithm' => 'alpha', 'imports_order' => ['class', 'const', 'function']], 'ordered_interfaces' => true, - 'php_unit_ordered_covers' => true, 'php_unit_set_up_tear_down_visibility' => true, 'php_unit_strict' => true, 'php_unit_test_class_requires_covers' => true,