Skip to content

Commit a59e75e

Browse files
committed
added phpstan
1 parent 452ef72 commit a59e75e

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ matrix:
2424
- php: 7.1
2525
name: phpstan
2626
script:
27-
- vendor/bin/phpstan analyze
27+
- vendor/bin/phpstan analyse
2828

2929
before_install:
3030
- if ! [ -z "$DEPENDENCIES" ]; then composer require --no-update ${DEPENDENCIES}; fi;

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@
3131
"php-http/guzzle6-adapter": "^1.0 || ^2.0",
3232
"php-http/mock-client": "^1.2",
3333
"guzzlehttp/psr7": "^1.2",
34-
"cache/array-adapter": "^0.4"
34+
"cache/array-adapter": "^0.4",
35+
"phpstan/phpstan": "^0.12.23"
3536
},
3637
"autoload": {
3738
"psr-4": { "Github\\": "lib/Github/" }

phpstan.neon.dist

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

0 commit comments

Comments
 (0)