Skip to content

Commit 0f34080

Browse files
committed
upgrade php-cs-fixer used in gh action and run on php 8
1 parent a33303d commit 0f34080

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,10 @@ jobs:
99
- uses: actions/checkout@master
1010
- uses: shivammathur/setup-php@v2
1111
with:
12-
php-version: '7.4'
12+
php-version: '8.0'
13+
tools: php-cs-fixer, cs2pr
1314
- name: php-cs-fixer
14-
run: |
15-
wget https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v2.18.2/php-cs-fixer.phar -q
16-
php php-cs-fixer.phar fix --dry-run --diff
15+
run: php-cs-fixer fix --dry-run --format=checkstyle | cs2pr
1716

1817
coding-style-js:
1918
runs-on: ubuntu-latest

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.php_cs.cache
1+
.php-cs-fixer.cache
22
node_modules
33
yarn.lock
44
yarn-error.log

.php_cs.dist renamed to .php-cs-fixer.dist.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
exit(0);
55
}
66

7-
return PhpCsFixer\Config::create()
7+
return (new PhpCsFixer\Config())
88
->setRules([
99
'@Symfony' => true,
1010
'@Symfony:risky' => true,

0 commit comments

Comments
 (0)