File tree 2 files changed +5
-1
lines changed 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 24
24
"phpstan/extension-installer" : " ^1.1" ,
25
25
"phpstan/phpstan" : " ^1.3.0" ,
26
26
"phpstan/phpstan-phpunit" : " ^1.0.0" ,
27
- "phpunit/phpunit" : " ^9.5.2 "
27
+ "phpunit/phpunit" : " ^9.6.19 "
28
28
},
29
29
"prefer-stable" : true ,
30
30
"autoload" : {
Original file line number Diff line number Diff line change 43
43
use PhpCsFixer \Fixer \ArrayNotation \NormalizeIndexBraceFixer ;
44
44
use PhpCsFixer \Fixer \ArrayNotation \TrimArraySpacesFixer ;
45
45
use PhpCsFixer \Fixer \ArrayNotation \WhitespaceAfterCommaInArrayFixer ;
46
+ use PhpCsFixer \Fixer \Basic \BracesFixer ;
46
47
use PhpCsFixer \Fixer \Basic \NoTrailingCommaInSinglelineFixer ;
47
48
use PhpCsFixer \Fixer \Basic \PsrAutoloadingFixer ;
48
49
use PhpCsFixer \Fixer \Casing \MagicMethodCasingFixer ;
458
459
->withConfiguredRule (OperatorSpacingSniff::class, ['ignoreNewlines ' => true ])
459
460
// PHP arrays should be declared using the configured syntax
460
461
->withConfiguredRule (ArraySyntaxFixer::class, ['syntax ' => 'short ' ])
462
+ // The body of each structure MUST be enclosed by braces. Braces should be properly placed
463
+ // @TODO move configuration to BracesPositionFixer after BracesFixer is not included in PSR-12 check anymore
464
+ ->withConfiguredRule (BracesFixer::class, ['allow_single_line_closure ' => true , 'allow_single_line_anonymous_class_with_empty_body ' => true ])
461
465
// Class, trait and interface elements must be separated with one or none blank line
462
466
->withConfiguredRule (ClassAttributesSeparationFixer::class, ['elements ' => ['method ' => 'one ' ]])
463
467
// Visibility MUST be declared on all properties, methods and class constants
You can’t perform that action at this time.
0 commit comments