Skip to content

Commit 7f67cd6

Browse files
committed
Include phpstan as a ci step
1 parent 36a6684 commit 7f67cd6

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@ jobs:
2828
run: composer install
2929

3030
- name: Run tests
31-
run: ./vendor/bin/phpunit
31+
run: vendor/bin/phpunit
32+
33+
- name: Run tests
34+
run: vendor/bin/phpstan

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@
1818
"php": "^7.2|^8.0"
1919
},
2020
"require-dev": {
21+
"phpstan/phpstan": "^1.10",
2122
"phpunit/phpunit": "~5|~9"
2223
},
2324
"autoload": {
2425
"files": [
2526
"src/streams.php"
2627
]
28+
},
29+
"config": {
30+
"sort-packages": true
2731
}
2832
}

phpstan.neon

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

0 commit comments

Comments
 (0)