Skip to content

Commit

Permalink
DevKit updates (sonata-project#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI authored Aug 17, 2021
1 parent 80e2a63 commit 693e794
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
uses: actions/checkout@v2

- name: Run PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga:2.18.5
uses: docker://oskarstark/php-cs-fixer-ga:3.0.0
with:
args: --ansi --verbose --diff --dry-run

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/build/
/node_modules/
/vendor/
.php_cs.cache
.php-cs-fixer.cache
composer.lock
phpunit.xml
phpstan.neon
Expand Down
7 changes: 4 additions & 3 deletions .php_cs.dist → .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
HEADER;

$rules = [
'@PHP56Migration' => true,
'@PHP56Migration:risky' => true,
'@PHP70Migration' => true,
'@PHP70Migration:risky' => true,
'@PHP71Migration' => true,
Expand Down Expand Up @@ -69,9 +67,12 @@
->exclude('var')
;

return PhpCsFixer\Config::create()
$config = new PhpCsFixer\Config();
$config
->setFinder($finder)
->setRiskyAllowed(true)
->setRules($rules)
->setUsingCache(true)
;

return $config;

0 comments on commit 693e794

Please sign in to comment.