Skip to content

Commit

Permalink
chore: require friendsofphp/php-cs-fixer:^3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
PedroTroller committed Jan 5, 2023
1 parent 88df526 commit b291e3e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 9 deletions.
11 changes: 7 additions & 4 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,21 @@
->phpCsFixer(true)
->php(7.4, true)
->pedrotroller(true)
->enable('ordered_imports')
->enable('ordered_interfaces')
->enable('align_multiline_comment')
->enable('array_indentation')
->enable('no_superfluous_phpdoc_tags')
->enable('simplified_null_return')
->enable('binary_operator_spaces', [
'operators' => [
'=' => 'align_single_space_minimal',
'=>' => 'align_single_space_minimal',
],
])
->enable('global_namespace_import', [
'import_classes' => true, 'import_constants' => false, 'import_functions' => false,
])
->enable('no_superfluous_phpdoc_tags')
->enable('ordered_imports')
->enable('ordered_interfaces')
->enable('simplified_null_return')
->disable('simplified_null_return')
->getRules()
)
Expand Down
6 changes: 3 additions & 3 deletions bin/doc
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ $fixers = array_map(function (AbstractFixer $fixer) {
$samples = $fixer->getDefinition()->getCodeSamples();

return [
'name' => $fixer->getName(),
'doc' => [
'name' => $fixer->getName(),
'doc' => [
'summary' => $fixer->getDefinition()->getSummary(),
],
'deprecated' => $fixer->isDeprecated(),
Expand All @@ -39,7 +39,7 @@ $fixers = array_map(function (AbstractFixer $fixer) {
? $fixer->getConfigurationDefinition()->getOptions()
: []
),
'samples' => array_map(function (CodeSample $sample) use ($fixer) {
'samples' => array_map(function (CodeSample $sample) use ($fixer) {
if ($fixer instanceof ConfigurableFixerInterface) {
$fixer->configure($sample->getConfiguration());
}
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "MIT",
"require": {
"php": "^7.4 || ^8.0",
"friendsofphp/php-cs-fixer": "^3.7"
"friendsofphp/php-cs-fixer": "^3.13"
},
"require-dev": {
"phpspec/phpspec": "^7.0",
Expand Down
2 changes: 1 addition & 1 deletion tests/TokensAnalyzerIntegration/MethodArguments.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function assertions(TokensAnalyzer $analyzer, Tokens $tokens): void
Assert::eq(
$arguments,
[
($theFunction + 5) => [
($theFunction + 5) => [
'type' => 'Domain\\Model\\User',
'name' => '$user',
'nullable' => false,
Expand Down

0 comments on commit b291e3e

Please sign in to comment.