Skip to content
This repository was archived by the owner on Jul 22, 2022. It is now read-only.

Commit 6659fd5

Browse files
authored
DevKit updates (#302)
1 parent cf52d31 commit 6659fd5

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/lint.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v2
2323

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

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/build/
66
/node_modules/
77
/vendor/
8-
.php_cs.cache
8+
.php-cs-fixer.cache
99
composer.lock
1010
phpunit.xml
1111
phpstan.neon

.php_cs.dist .php-cs-fixer.dist.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
HEADER;
1717

1818
$rules = [
19-
'@PHP56Migration' => true,
20-
'@PHP56Migration:risky' => true,
2119
'@PHP70Migration' => true,
2220
'@PHP70Migration:risky' => true,
2321
'@PHP71Migration' => true,
@@ -69,9 +67,12 @@
6967
->exclude('var')
7068
;
7169

72-
return PhpCsFixer\Config::create()
70+
$config = new PhpCsFixer\Config();
71+
$config
7372
->setFinder($finder)
7473
->setRiskyAllowed(true)
7574
->setRules($rules)
7675
->setUsingCache(true)
7776
;
77+
78+
return $config;

0 commit comments

Comments
 (0)