Skip to content

Commit f2abf32

Browse files
authored
minor #871 Added phpstan (clxkoders)
This PR was squashed before being merged into the 2.14.x-dev branch. Discussion ---------- closes #857 Commits ------- 452ef72 Update .travis.yml a59e75e added phpstan a77c885 added phpstan-baseline e395c86 reset phpstan level to 0 2f9e507 Update .travis.yml 53d52c7 remove phpstan baseline f90467e remove phpstan baseline
1 parent 953c9b4 commit f2abf32

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ matrix:
2121
- php: 7.2
2222
name: Backward compatibillity check
2323
env: DEPENDENCIES="roave/backward-compatibility-check" TEST_COMMAND="./.github/bc-test.sh"
24+
- php: 7.1
25+
name: phpstan
26+
script:
27+
- vendor/bin/phpstan analyse --no-progress
2428

2529
before_install:
2630
- 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)