Skip to content

Commit 940b6ca

Browse files
authored
Merge pull request #52 from FlorentTorregrosa/deprecations
Fix deprecations when using PHPCS Fixer 3.35.1.
2 parents e0d94f5 + 67db843 commit 940b6ca

1 file changed

Lines changed: 7 additions & 11 deletions

File tree

config/php/phpcsfixer.rules.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,8 @@ parameters:
3434
- yield
3535
- yield_from
3636
blank_lines_before_namespace: true
37-
37+
braces_position: true
3838
control_structure_braces: true
39-
curly_braces_position:
40-
allow_single_line_anonymous_functions: true
41-
allow_single_line_empty_anonymous_classes: true
4239
control_structure_continuation_position:
4340
position: same_line
4441
declare_parentheses: true
@@ -74,7 +71,7 @@ parameters:
7471
combine_consecutive_unsets: true
7572
combine_nested_dirname: false
7673
comment_to_phpdoc: true
77-
compact_nullable_typehint: false
74+
compact_nullable_type_declaration: false
7875
concat_space:
7976
spacing: one
8077
constant_case:
@@ -114,7 +111,6 @@ parameters:
114111
fopen_flags: true
115112
fully_qualified_strict_types: true
116113
function_to_constant: true
117-
function_typehint_space: true
118114
general_phpdoc_annotation_remove:
119115
annotations:
120116
- inheritdoc
@@ -159,8 +155,8 @@ parameters:
159155
- '@compiler_optimized'
160156
scope: namespaced
161157
strict: true
162-
native_function_type_declaration_casing: true
163-
new_with_braces: true
158+
native_type_declaration_casing: true
159+
new_with_parentheses: true
164160
no_alias_functions: true
165161
no_alternative_syntax: true
166162
no_binary_string: true
@@ -183,13 +179,11 @@ parameters:
183179
- inside
184180
- outside
185181
no_spaces_after_function_name: true
186-
no_spaces_inside_parenthesis: true
187182
no_superfluous_elseif: true
188183
no_superfluous_phpdoc_tags:
189184
allow_mixed: true
190185
allow_unused_params: false
191186
remove_inheritdoc: true
192-
no_trailing_comma_in_list_call: true
193187
no_trailing_comma_in_singleline:
194188
elements:
195189
- arguments
@@ -198,6 +192,7 @@ parameters:
198192
- group_import
199193
no_trailing_whitespace: true
200194
no_trailing_whitespace_in_comment: true
195+
no_unneeded_braces: true
201196
no_unneeded_control_parentheses:
202197
statements:
203198
- break
@@ -208,7 +203,6 @@ parameters:
208203
- switch_case
209204
- yield
210205
no_unneeded_curly_braces: true
211-
no_unneeded_final_method: true
212206
no_unreachable_default_argument_value: true
213207
no_unset_cast: true
214208
no_unset_on_property: true
@@ -339,6 +333,7 @@ parameters:
339333
single_quote: true
340334
single_trait_insert_per_statement: true
341335
space_after_semicolon: true
336+
spaces_inside_parentheses: true
342337
standardize_increment: true
343338
standardize_not_equals: true
344339
static_lambda: true
@@ -349,6 +344,7 @@ parameters:
349344
ternary_to_null_coalescing: false
350345
trailing_comma_in_multiline: true
351346
trim_array_spaces: true
347+
type_declaration_spaces: true
352348
unary_operator_spaces: true
353349
void_return: false
354350
whitespace_after_comma_in_array: true

0 commit comments

Comments
 (0)