Skip to content

Commit 604a28b

Browse files
committed
Update to PHP-CS-Fixer 3.86
1 parent 9ab189b commit 604a28b

6 files changed

Lines changed: 136 additions & 114 deletions

File tree

.php-cs-fixer.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
->setRules([
1515
'@PER-CS' => true,
1616
'align_multiline_comment' => true,
17-
'array_syntax' => true,
1817
'binary_operator_spaces' => true,
1918
'class_attributes_separation' => ['elements' => ['method' => 'one']],
2019
'class_reference_name_casing' => true,
2120
'clean_namespace' => true,
21+
'combine_consecutive_issets' => true,
2222
'combine_consecutive_unsets' => true,
2323
'declare_parentheses' => true,
2424
'integer_literal_case' => true,
@@ -35,24 +35,26 @@
3535
'no_extra_blank_lines' => true,
3636
'no_spaces_around_offset' => true,
3737
'no_superfluous_phpdoc_tags' => true,
38+
'no_trailing_comma_in_singleline' => true,
3839
'no_unneeded_control_parentheses' => true,
3940
'no_unused_imports' => true,
41+
'no_useless_concat_operator' => true,
4042
'no_useless_return' => true,
4143
'no_whitespace_before_comma_in_array' => true,
4244
'object_operator_without_whitespace' => true,
45+
'ordered_class_elements' => ['order' => ['use_trait', 'case', 'constant', 'property', 'method']],
4346
'ordered_imports' => ['sort_algorithm' => 'alpha'],
4447
'phpdoc_indent' => true,
4548
'phpdoc_no_empty_return' => true,
49+
'phpdoc_order' => true,
50+
'phpdoc_param_order' => true,
4651
'phpdoc_single_line_var_spacing' => true,
4752
'return_assignment' => true,
4853
'semicolon_after_instruction' => true,
49-
'single_class_element_per_statement' => true,
50-
'single_space_around_construct' => true,
5154
'space_after_semicolon' => true,
5255
'standardize_not_equals' => true,
5356
'trim_array_spaces' => true,
5457
'type_declaration_spaces' => true,
55-
'types_spaces' => true,
5658
'whitespace_after_comma_in_array' => ['ensure_single_space' => true],
5759
])
5860
->setFinder($finder);

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"php": ">=8.2"
2424
},
2525
"require-dev": {
26-
"friendsofphp/php-cs-fixer": "^3.84",
26+
"friendsofphp/php-cs-fixer": "^3.86",
2727
"jbboehr/handlebars-spec": "dev-master",
28-
"phpstan/phpstan": "^2.1.18",
28+
"phpstan/phpstan": "^2.1.22",
2929
"phpunit/phpunit": "^11.5"
3030
},
3131
"autoload": {

0 commit comments

Comments
 (0)