mirror of
https://github.com/danog/psalm-plugin-symfony.git
synced 2024-11-26 11:55:00 +01:00
Upgrade php-cs-fixer to v3 (#178)
This commit is contained in:
parent
0bd4de0cd1
commit
497d831b07
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,7 +2,7 @@
|
||||
.build/!.gitkeep
|
||||
vendor
|
||||
composer.lock
|
||||
.php_cs.cache
|
||||
.php-cs-fixer.cache
|
||||
tests/_run
|
||||
/.idea
|
||||
/.phpunit.result.cache
|
||||
|
@ -7,12 +7,12 @@ $finder = PhpCsFixer\Finder::create()
|
||||
->files()
|
||||
->name('*.php');
|
||||
|
||||
return PhpCsFixer\Config::create()
|
||||
return (new PhpCsFixer\Config())
|
||||
->setFinder($finder)
|
||||
->setRules([
|
||||
'@Symfony' => true,
|
||||
'array_syntax' => ['syntax' => 'short'],
|
||||
'binary_operator_spaces' => ['align_double_arrow' => false],
|
||||
'binary_operator_spaces' => true,
|
||||
'no_useless_else' => true,
|
||||
'no_useless_return' => false,
|
||||
'ordered_imports' => true,
|
Loading…
Reference in New Issue
Block a user