Skip to content

Commit 84c95bd

Browse files
committed
Add phpstan to ci
1 parent a268b53 commit 84c95bd

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ jobs:
3030

3131
- name: Test with phpunit
3232
run: vendor/bin/phpunit
33+
34+
- name: Test with phpstan
35+
run: vendor/bin/phpstan

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"friendsofphp/php-cs-fixer": "^3.1",
3737
"squizlabs/php_codesniffer": "^3.6",
3838
"corpus/coding-standard": "^0.6.0 || ^0.8.0",
39+
"phpstan/phpstan": "^1.10",
3940
"ext-curl": "*"
4041
},
4142
"config": {

phpstan.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
parameters:
2+
level: 5
3+
paths:
4+
- src
5+
- server
6+
phpVersion: 70100

0 commit comments

Comments
 (0)