Skip to content

Commit 9b8c43d

Browse files
committed
update php-cs-fixer
1 parent b81f777 commit 9b8c43d

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
php-version:
16-
- '7.4'
16+
- '8.1'
1717

1818
steps:
1919
- name: 'Check out'

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/.php_cs
2-
/.php_cs.cache
1+
/.php-cs-fixer.php
2+
/.php-cs-fixer.cache
33
/.phpunit.result.cache
44
/composer.lock
55
/phpunit.xml

.php_cs.dist renamed to .php-cs-fixer.dist.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
$finder->notPath('Dto/Product.php');
2222
}
2323

24-
return PhpCsFixer\Config::create()
24+
$config = (new PhpCsFixer\Config())
2525
->setRules([
2626
'@Symfony' => true,
2727
'@Symfony:risky' => true,
@@ -49,5 +49,6 @@
4949
'void_return' => true,
5050
])
5151
->setRiskyAllowed(true)
52-
->setFinder($finder)
53-
;
52+
->setFinder($finder);
53+
54+
return $config;

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"symfony/property-access": "^4.4||^5.0||^6.0"
2828
},
2929
"require-dev": {
30-
"friendsofphp/php-cs-fixer": "^2.16",
30+
"friendsofphp/php-cs-fixer": "^3.4",
3131
"phpstan/phpstan": "^0.12.4",
3232
"symfony/phpunit-bridge": "^4.4.12||^5.2",
3333
"symfony/translation": "^4.4||^5.0||^6.0"

0 commit comments

Comments
 (0)