Skip to content

Commit 2ccb286

Browse files
authored
Use composer to install phpstan (#1456)
* Use composer to install phpstan The unofficial docker image that was used does not have all the phpstan releases. * Use PHP 8.2 to run phpstan on CI
1 parent fdc419b commit 2ccb286

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.github/workflows/static.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- name: Set up PHP
1616
uses: shivammathur/setup-php@v2
1717
with:
18-
php-version: 7.4
18+
php-version: 8.2
1919
coverage: none
2020

2121
- name: Checkout code
@@ -44,10 +44,7 @@ jobs:
4444
composer update --no-interaction --prefer-dist --optimize-autoloader
4545
4646
- name: PHPStan
47-
uses: docker://oskarstark/phpstan-ga:1.6.0
48-
with:
49-
entrypoint: /composer/vendor/bin/phpstan
50-
args: analyze --no-progress
47+
run: vendor/bin/phpstan analyze --no-progress
5148

5249
php-cs-fixer:
5350
name: PHP-CS-Fixer

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"nette/php-generator": "^3.6.4",
3131
"nette/utils": "^3.0",
3232
"nyholm/symfony-bundle-test": "^2.0",
33+
"phpstan/phpstan": "1.6.0",
3334
"psr/cache": "^1.0 || ^2.0 || ^3.0",
3435
"swaggest/json-diff": "^3.7",
3536
"symfony/cache": "^4.4 || ^5.0 || ^6.0 || ^7.0",

0 commit comments

Comments
 (0)