Skip to content

Commit 149d9d3

Browse files
committed
feat: allow php-cs-fixer v3
1 parent 8ac8ff5 commit 149d9d3

File tree

4 files changed

+18
-29
lines changed

4 files changed

+18
-29
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
/.env
77

88
# PHP CS Fixer
9-
/.php_cs.cache
9+
/.php-cs-fixer.cache
1010

1111
# PHPUnit
1212
/build

.php_cs

Lines changed: 0 additions & 27 deletions
This file was deleted.

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"sebastian/exporter": "<2.0.0"
4040
},
4141
"require-dev": {
42-
"friendsofphp/php-cs-fixer": "^2.0",
42+
"friendsofphp/php-cs-fixer": "^2.19 || ^3.22",
4343
"matthiasnoback/symfony-dependency-injection-test": "^3.0 || ^4.0",
4444
"symfony/console": "^4.4 || ^5.0 || ^6.0",
4545
"symfony/phpunit-bridge": "^4.4 || ^5.0 || ^6.0",

php-cs-fixer.dist.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->notPath('vendor')
5+
->in(__DIR__)
6+
;
7+
8+
return (new PhpCsFixer\Config())
9+
->setRules([
10+
'@Symfony' => true,
11+
'array_syntax' => ['syntax' => 'short'],
12+
'yoda_style' => false,
13+
'no_superfluous_phpdoc_tags' => false,
14+
])
15+
->setFinder($finder)
16+
;

0 commit comments

Comments
 (0)