Skip to content

Commit

Permalink
Replace Psalm with PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
andyexeter committed Nov 15, 2023
1 parent 4deae61 commit 714b51a
Show file tree
Hide file tree
Showing 4 changed files with 218 additions and 1,256 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:

- name: PHP-CS-Fixer
run: php vendor/bin/php-cs-fixer fix -vvv --dry-run --using-cache=no --format=checkstyle | cs2pr
if: matrix.php-versions == 8.1
if: matrix.php-versions == 8.2

- name: Psalm
run: php vendor/bin/psalm --no-cache --show-info=false --stats --output-format=github --threads=$(nproc)
- name: Static Analysis
run: php vendor/bin/phpstan analyse

- name: PHPUnit
- name: Tests
run: php vendor/bin/phpunit -v --do-not-cache-result
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"vimeo/psalm": "^5.2",
"palmtree/php-cs-fixer-config": "^2.0"
"palmtree/php-cs-fixer-config": "^2.0",
"phpstan/phpstan": "^1.10"
},
"autoload-dev": {
"psr-4": {
Expand All @@ -33,7 +33,7 @@
},
"scripts": {
"fix": "@php vendor/bin/php-cs-fixer fix",
"psalm": "@php vendor/bin/psalm --no-cache",
"sa": "@php vendor/bin/phpstan analyse",
"test": "@php vendor/bin/phpunit"
},
"config": {
Expand Down
Loading

0 comments on commit 714b51a

Please sign in to comment.