Skip to content

Commit

Permalink
Add phpstan to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
donatj committed Dec 8, 2024
1 parent a268b53 commit 84c95bd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,6 @@ jobs:

- name: Test with phpunit
run: vendor/bin/phpunit

- name: Test with phpstan
run: vendor/bin/phpstan
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"friendsofphp/php-cs-fixer": "^3.1",
"squizlabs/php_codesniffer": "^3.6",
"corpus/coding-standard": "^0.6.0 || ^0.8.0",
"phpstan/phpstan": "^1.10",
"ext-curl": "*"
},
"config": {
Expand Down
6 changes: 6 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
parameters:
level: 5
paths:
- src
- server
phpVersion: 70100

0 comments on commit 84c95bd

Please sign in to comment.