Skip to content

Commit

Permalink
Update php cs fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
RikudouSage committed Apr 8, 2022
1 parent 71d9ef1 commit d2ffc8a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .php_cs.dist → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

return PhpCsFixer\Config::create()
return (new \PhpCsFixer\Config())
->setRules([
'@PSR2' => true,
'array_syntax' => ['syntax' => 'short'],
Expand All @@ -10,7 +10,7 @@
],
'cast_spaces' => true,
'class_attributes_separation' => [
'elements' => ['method', 'property'],
'elements' => ['method' => 'one', 'property' => 'one'],
],
'combine_consecutive_unsets' => true,
'compact_nullable_typehint' => true,
Expand Down Expand Up @@ -70,7 +70,7 @@
'single_quote' => true,
'standardize_not_equals' => true,
'ternary_operator_spaces' => true,
'trailing_comma_in_multiline_array' => true,
'trailing_comma_in_multiline' => true,
'unary_operator_spaces' => true,
'visibility_required' => [
'elements' => ['property', 'method', 'const'],
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
}
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.16",
"friendsofphp/php-cs-fixer": "^3.0",
"phpstan/phpstan": "^0.12.44",
"phpunit/phpunit": "^9.3"
},
Expand Down

0 comments on commit d2ffc8a

Please sign in to comment.