Skip to content

Commit

Permalink
DevKit updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SonataCI authored and jordisala1991 committed Aug 17, 2021
1 parent 9adcfc7 commit 386aa78
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 386aa78

Please sign in to comment.