Skip to content

Commit 38838a1

Browse files
committed
[TASK] Move PHPStan from PHIVE to Composer
This allows us to have PHPStan extensions, e.g., for PHPUnit.
1 parent 9d6c1d8 commit 38838a1

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ jobs:
130130
131131
- name: Install development tools
132132
run: |
133-
phive --no-progress install --trust-gpg-keys BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,95DE904AB800754A11D80B605E6DDE998AB73B8E,CA7C2C7A30C8E8E1274A847651C67305FFC2E5C0
133+
phive --no-progress install --trust-gpg-keys BBAB5DF0A0D6672989CF1869E82B2FB314E9906E,95DE904AB800754A11D80B605E6DDE998AB73B8E
134134
135135
- name: Run Command
136136
run: composer ci:php:${{ matrix.command }}

.phive/phars.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@
33
<phar name="php-cs-fixer" version="^3.49.0" installed="3.49.0" location="./.phive/php-cs-fixer.phar" copy="false"/>
44
<phar name="phpcbf" version="^3.8.1" installed="3.8.1" location="./.phive/phpcbf.phar" copy="false"/>
55
<phar name="phpcs" version="^3.8.1" installed="3.8.1" location="./.phive/phpcs.phar" copy="false"/>
6-
<phar name="phpstan" version="^1.10.57" installed="1.10.57" location="./.phive/phpstan.phar" copy="false"/>
76
</phive>

composer.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@
2828
},
2929
"require-dev": {
3030
"phpunit/phpunit": "^8.5.36",
31-
"codacy/coverage": "^1.4.3"
31+
"codacy/coverage": "^1.4.3",
32+
"phpstan/phpstan": "^1.10.57"
3233
},
3334
"suggest": {
3435
"ext-mbstring": "for parsing UTF-8 CSS"
@@ -38,6 +39,11 @@
3839
"Sabberworm\\CSS\\": "src/"
3940
}
4041
},
42+
"config": {
43+
"allow-plugins": {
44+
"phpstan/extension-installer": true
45+
}
46+
},
4147
"autoload-dev": {
4248
"psr-4": {
4349
"Sabberworm\\CSS\\Tests\\": "tests/"
@@ -54,7 +60,7 @@
5460
],
5561
"ci:php:fixer": "@php ./.phive/php-cs-fixer.phar --config=config/php-cs-fixer.php fix --dry-run -v --show-progress=dots bin src tests",
5662
"ci:php:sniffer": "@php ./.phive/phpcs.phar --standard=config/phpcs.xml bin src tests",
57-
"ci:php:stan": "@php ./.phive/phpstan.phar --configuration=config/phpstan.neon",
63+
"ci:php:stan": "phpstan --no-progress --configuration=config/phpstan.neon",
5864
"ci:static": [
5965
"@ci:php:fixer",
6066
"@ci:php:sniffer",

0 commit comments

Comments
 (0)