Skip to content

Commit e90eea7

Browse files
committed
Upgrade PHP-CS-Fixer
1 parent 5fd2d12 commit e90eea7

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
],
3333
"require": {
3434
"php": ">=8.0",
35-
"friendsofphp/php-cs-fixer": "3.9.3"
35+
"friendsofphp/php-cs-fixer": "~3.11.0"
3636
},
3737
"require-dev": {
3838
"ext-xdebug": "*",

src/Config.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ protected function prepareRules() : void
187187
'no_spaces_inside_parenthesis' => true,
188188
'no_superfluous_elseif' => true,
189189
'no_superfluous_phpdoc_tags' => false,
190-
'no_trailing_comma_in_list_call' => true,
191-
'no_trailing_comma_in_singleline_array' => true,
190+
'no_trailing_comma_in_singleline' => true,
192191
'no_trailing_whitespace' => true,
193192
'no_trailing_whitespace_in_comment' => true,
194193
'no_unneeded_control_parentheses' => true,
@@ -285,7 +284,9 @@ protected function prepareRules() : void
285284
'unary_operator_spaces' => true,
286285
'visibility_required' => true,
287286
'void_return' => true,
288-
'whitespace_after_comma_in_array' => true,
287+
'whitespace_after_comma_in_array' => [
288+
'ensure_single_space' => true,
289+
],
289290
'yoda_style' => false,
290291
]);
291292
}
@@ -317,8 +318,7 @@ public function setHeaderComment(string $header) : static
317318
public function setDefaultHeaderComment(
318319
string $packageName,
319320
string $copyright = ''
320-
) : static
321-
{
321+
) : static {
322322
$copyrightLines = "\n";
323323
if ($copyright) {
324324
$copyrightLines .= "\n" . '(c) ' . $copyright . "\n";

0 commit comments

Comments
 (0)