Skip to content

Commit 15fe8ee

Browse files
committed
[TASK] Move PHPStan from PHIVE to Composer
This allows us to have PHPStan extensions, e.g., for PHPUnit.
1 parent d518539 commit 15fe8ee

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
@@ -20,7 +20,8 @@
2020
},
2121
"require-dev": {
2222
"phpunit/phpunit": "^8.5.36",
23-
"codacy/coverage": "^1.4.3"
23+
"codacy/coverage": "^1.4.3",
24+
"phpstan/phpstan": "^1.10.57"
2425
},
2526
"suggest": {
2627
"ext-mbstring": "for parsing UTF-8 CSS"
@@ -30,6 +31,11 @@
3031
"Sabberworm\\CSS\\": "src/"
3132
}
3233
},
34+
"config": {
35+
"allow-plugins": {
36+
"phpstan/extension-installer": true
37+
}
38+
},
3339
"autoload-dev": {
3440
"psr-4": {
3541
"Sabberworm\\CSS\\Tests\\": "tests/"
@@ -46,7 +52,7 @@
4652
],
4753
"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",
4854
"ci:php:sniffer": "@php ./.phive/phpcs.phar --standard=config/phpcs.xml bin src tests",
49-
"ci:php:stan": "@php ./.phive/phpstan.phar --configuration=config/phpstan.neon",
55+
"ci:php:stan": "phpstan --no-progress --configuration=config/phpstan.neon",
5056
"ci:static": [
5157
"@ci:php:fixer",
5258
"@ci:php:sniffer",

0 commit comments

Comments
 (0)