Skip to content

Commit

Permalink
feat: allow php-cs-fixer v3
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris8934 committed Aug 11, 2023
1 parent 8ac8ff5 commit 149d9d3
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/.env

# PHP CS Fixer
/.php_cs.cache
/.php-cs-fixer.cache

# PHPUnit
/build
Expand Down
27 changes: 0 additions & 27 deletions .php_cs

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"sebastian/exporter": "<2.0.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.0",
"friendsofphp/php-cs-fixer": "^2.19 || ^3.22",
"matthiasnoback/symfony-dependency-injection-test": "^3.0 || ^4.0",
"symfony/console": "^4.4 || ^5.0 || ^6.0",
"symfony/phpunit-bridge": "^4.4 || ^5.0 || ^6.0",
Expand Down
16 changes: 16 additions & 0 deletions php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php

$finder = PhpCsFixer\Finder::create()
->notPath('vendor')
->in(__DIR__)
;

return (new PhpCsFixer\Config())
->setRules([
'@Symfony' => true,
'array_syntax' => ['syntax' => 'short'],
'yoda_style' => false,
'no_superfluous_phpdoc_tags' => false,
])
->setFinder($finder)
;

0 comments on commit 149d9d3

Please sign in to comment.