Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update dependency friendsofphp/php-cs-fixer to v3.71.0 #1666

Merged
merged 5 commits into from
Mar 11, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@
->ignoreDotFiles(true)
->ignoreVCS(true);

return \MLL\PhpCsFixerConfig\risky($finder, [
return MLL\PhpCsFixerConfig\risky($finder, [
'no_superfluous_phpdoc_tags' => [
'allow_mixed' => true,
],
@@ -24,4 +24,4 @@
'identical' => false,
'less_and_greater' => false,
],
]);
])->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect());
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@
"amphp/http-server": "^2.1",
"dms/phpunit-arraysubset-asserts": "dev-master",
"ergebnis/composer-normalize": "^2.28",
"friendsofphp/php-cs-fixer": "3.65.0",
"friendsofphp/php-cs-fixer": "3.71.0",
"mll-lab/php-cs-fixer-config": "^5.9.2",
"nyholm/psr7": "^1.5",
"phpbench/phpbench": "^1.2",
10 changes: 4 additions & 6 deletions src/Utils/Utils.php
Original file line number Diff line number Diff line change
@@ -217,12 +217,10 @@ public static function orList(array $items): string

return \array_reduce(
\range(1, $selectedLength - 1),
static function ($list, $index) use ($selected, $selectedLength): string {
return $list
. ($selectedLength > 2 ? ', ' : ' ')
. ($index === $selectedLength - 1 ? 'or ' : '')
. $selected[$index];
},
static fn ($list, $index): string => $list
. ($selectedLength > 2 ? ', ' : ' ')
. ($index === $selectedLength - 1 ? 'or ' : '')
. $selected[$index],
$firstSelected
);
}