Skip to content

Commit 120d014

Browse files
committed
Update to PHP-CS-Fixer 3.86
1 parent 13156aa commit 120d014

File tree

6 files changed

+145
-121
lines changed

6 files changed

+145
-121
lines changed

.github/workflows/php.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ jobs:
3737

3838
- name: Check Formatting
3939
run: vendor/bin/php-cs-fixer fix -v --dry-run --stop-on-violation --using-cache=no
40-
if: ${{ matrix.php == '8.3' }}
40+
if: ${{ matrix.php == '8.4' }}

.php-cs-fixer.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
->setRules([
1818
'@PER-CS' => true,
1919
'align_multiline_comment' => true,
20-
'array_syntax' => true,
2120
'binary_operator_spaces' => true,
2221
'class_attributes_separation' => ['elements' => ['method' => 'one']],
2322
'class_reference_name_casing' => true,
2423
'clean_namespace' => true,
24+
'combine_consecutive_issets' => true,
2525
'combine_consecutive_unsets' => true,
2626
'declare_parentheses' => true,
2727
'integer_literal_case' => true,
@@ -38,24 +38,26 @@
3838
'no_extra_blank_lines' => true,
3939
'no_spaces_around_offset' => true,
4040
'no_superfluous_phpdoc_tags' => true,
41+
'no_trailing_comma_in_singleline' => true,
4142
'no_unneeded_control_parentheses' => true,
4243
'no_unused_imports' => true,
44+
'no_useless_concat_operator' => true,
4345
'no_useless_return' => true,
4446
'no_whitespace_before_comma_in_array' => true,
4547
'object_operator_without_whitespace' => true,
48+
'ordered_class_elements' => ['order' => ['use_trait', 'case', 'constant', 'property', 'method']],
4649
'ordered_imports' => ['sort_algorithm' => 'alpha'],
4750
'phpdoc_indent' => true,
4851
'phpdoc_no_empty_return' => true,
52+
'phpdoc_order' => true,
53+
'phpdoc_param_order' => true,
4954
'phpdoc_single_line_var_spacing' => true,
5055
'return_assignment' => true,
5156
'semicolon_after_instruction' => true,
52-
'single_class_element_per_statement' => true,
53-
'single_space_around_construct' => true,
5457
'space_after_semicolon' => true,
5558
'standardize_not_equals' => true,
5659
'trim_array_spaces' => true,
5760
'type_declaration_spaces' => true,
58-
'types_spaces' => true,
5961
'whitespace_after_comma_in_array' => ['ensure_single_space' => true],
6062
])
6163
->setFinder($finder);

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"php": ">=8.2"
2121
},
2222
"require-dev": {
23-
"friendsofphp/php-cs-fixer": "^3.75",
23+
"friendsofphp/php-cs-fixer": "^3.86",
2424
"ircmaxell/php-yacc": "dev-master",
2525
"jbboehr/handlebars-spec": "dev-master",
26-
"phpstan/phpstan": "^2.1.14",
26+
"phpstan/phpstan": "^2.1.22",
2727
"phpunit/phpunit": "^11.5"
2828
},
2929
"autoload": {

0 commit comments

Comments
 (0)