Skip to content

Commit 7227530

Browse files
committed
Update PHP-CS-Fixer
1 parent f53a163 commit 7227530

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ composer.phar
22
composer.lock
33
/vendor/
44
/.idea/
5-
/.php_cs
6-
/.php_cs.cache
5+
/.php-cs-fixer.php
6+
/.php-cs-fixer.cache
77
/.phpunit.result.cache
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
<?php
22

3-
$finder = PhpCsFixer\Finder::create()
3+
$finder = (new PhpCsFixer\Finder())
44
->in([
55
__DIR__.'/src',
66
__DIR__.'/tests'
77
])
88
;
99

10-
return PhpCsFixer\Config::create()
10+
return (new PhpCsFixer\Config())
11+
->setFinder($finder)
1112
->setRules([
1213
'@Symfony' => true,
1314
'array_syntax' => ['syntax' => 'short'],
1415
'linebreak_after_opening_tag' => true,
1516
'ordered_imports' => true,
1617
'phpdoc_add_missing_param_annotation' => true,
1718
'phpdoc_order' => true,
18-
'yoda_style' => null,
19+
'yoda_style' => false,
1920
'no_superfluous_phpdoc_tags' => false,
2021
])
21-
->setFinder($finder)
2222
;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"swisnl/illuminate-collections": "^6.0|^7.0|^8.0"
1616
},
1717
"require-dev": {
18-
"friendsofphp/php-cs-fixer": "^2.16",
18+
"friendsofphp/php-cs-fixer": "^3.0",
1919
"guzzlehttp/guzzle": "^7.3",
2020
"phpunit/phpunit": "^8.0|^9.0",
2121
"php-http/mock-client": "^1.2"

0 commit comments

Comments
 (0)