Skip to content

Commit

Permalink
fixup! Upgrade everything to its newest version, use PSR-12
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Guth committed Apr 18, 2024
1 parent dabd834 commit a96f5e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"phpstan/extension-installer": "^1.1",
"phpstan/phpstan": "^1.3.0",
"phpstan/phpstan-phpunit": "^1.0.0",
"phpunit/phpunit": "^9.5.2"
"phpunit/phpunit": "^9.6.19"
},
"prefer-stable": true,
"autoload": {
Expand Down
4 changes: 4 additions & 0 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
use PhpCsFixer\Fixer\ArrayNotation\NormalizeIndexBraceFixer;
use PhpCsFixer\Fixer\ArrayNotation\TrimArraySpacesFixer;
use PhpCsFixer\Fixer\ArrayNotation\WhitespaceAfterCommaInArrayFixer;
use PhpCsFixer\Fixer\Basic\BracesFixer;
use PhpCsFixer\Fixer\Basic\NoTrailingCommaInSinglelineFixer;
use PhpCsFixer\Fixer\Basic\PsrAutoloadingFixer;
use PhpCsFixer\Fixer\Casing\MagicMethodCasingFixer;
Expand Down Expand Up @@ -458,6 +459,9 @@
->withConfiguredRule(OperatorSpacingSniff::class, ['ignoreNewlines' => true])
// PHP arrays should be declared using the configured syntax
->withConfiguredRule(ArraySyntaxFixer::class, ['syntax' => 'short'])
// The body of each structure MUST be enclosed by braces. Braces should be properly placed
// @TODO move configuration to BracesPositionFixer after BracesFixer is not included in PSR-12 check anymore
->withConfiguredRule(BracesFixer::class, ['allow_single_line_closure' => true, 'allow_single_line_anonymous_class_with_empty_body' => true])
// Class, trait and interface elements must be separated with one or none blank line
->withConfiguredRule(ClassAttributesSeparationFixer::class, ['elements' => ['method' => 'one']])
// Visibility MUST be declared on all properties, methods and class constants
Expand Down

0 comments on commit a96f5e1

Please sign in to comment.