Skip to content

Commit d3170d5

Browse files
localheinzsebastianbergmann
authored andcommitted
Fix: Do not configure deprecated fixers
1 parent 998b825 commit d3170d5

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.php-cs-fixer.dist.php

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
],
4242
],
4343
'blank_line_after_namespace' => true,
44+
'blank_lines_before_namespace' => [
45+
'max_line_breaks' => 1,
46+
'min_line_breaks' => 0,
47+
],
4448
'blank_line_before_statement' => [
4549
'statements' => [
4650
'break',
@@ -105,7 +109,6 @@
105109
'fully_qualified_strict_types' => true,
106110
'function_declaration' => true,
107111
'function_to_constant' => true,
108-
'function_typehint_space' => true,
109112
'global_namespace_import' => [
110113
'import_classes' => true,
111114
'import_constants' => true,
@@ -155,7 +158,6 @@
155158
'no_binary_string' => true,
156159
'no_blank_lines_after_class_opening' => true,
157160
'no_blank_lines_after_phpdoc' => true,
158-
'no_blank_lines_before_namespace' => true,
159161
'no_break_comment' => true,
160162
'no_closing_tag' => true,
161163
'no_empty_comment' => true,
@@ -175,7 +177,6 @@
175177
'no_space_around_double_colon' => true,
176178
'no_spaces_after_function_name' => true,
177179
'no_spaces_around_offset' => true,
178-
'no_spaces_inside_parenthesis' => true,
179180
'no_superfluous_elseif' => true,
180181
'no_superfluous_phpdoc_tags' => [
181182
'allow_mixed' => true,
@@ -300,6 +301,9 @@
300301
'single_space_around_construct' => true,
301302
'single_trait_insert_per_statement' => true,
302303
'space_after_semicolon' => true,
304+
'spaces_inside_parentheses' => [
305+
'space' => 'none',
306+
],
303307
'standardize_increment' => true,
304308
'standardize_not_equals' => true,
305309
'statement_indentation' => true,
@@ -319,6 +323,11 @@
319323
]
320324
],
321325
'trim_array_spaces' => true,
326+
'type_declaration_spaces' => [
327+
'elements' => [
328+
'function',
329+
],
330+
],
322331
'types_spaces' => true,
323332
'unary_operator_spaces' => true,
324333
'visibility_required' => [

0 commit comments

Comments
 (0)