Skip to content

Commit 2805992

Browse files
committed
Update to PHP-CS-Fixer 3.86
1 parent ef52251 commit 2805992

5 files changed

Lines changed: 10 additions & 9 deletions

File tree

.github/workflows/php.yml

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

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

.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
@@ -24,8 +24,8 @@
2424
"shrikeh/teapot": "^3.0"
2525
},
2626
"require-dev": {
27-
"friendsofphp/php-cs-fixer": "^3.75",
28-
"phpstan/phpstan": "^2.1.14",
27+
"friendsofphp/php-cs-fixer": "^3.86",
28+
"phpstan/phpstan": "^2.1.22",
2929
"phpunit/phpunit": "^10.5"
3030
},
3131
"autoload": {

src/Entities.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ public function addEntities(array $entities): array
217217
foreach ($existingIds as $offset => $id) {
218218
array_splice($ids, $offset, 0, [$id]);
219219
}
220-
/** @phpstan-ignore return.type */
221220
return $ids;
222221
}
223222

src/Prop.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function __construct(
3333
public readonly bool $isDefault = true,
3434
public readonly string $alias = '',
3535
public readonly ?string $type = null,
36-
public readonly DateTimeZone|null|false $timeZone = false,
36+
public readonly DateTimeZone|false|null $timeZone = false,
3737
public readonly ?Closure $getValue = null,
3838
public readonly array $dependsOn = [],
3939
bool $output = true,

0 commit comments

Comments
 (0)