Skip to content

Commit

Permalink
composer: added PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Dec 10, 2019
1 parent fd6a384 commit acda8dd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@ jobs:


- stage: Static Analysis (informative)
install:
# Install PHPStan
- travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
- travis_retry composer install --no-progress --prefer-dist
script:
- php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 5 src
- vendor/bin/phpstan analyse --level 5 --configuration tests/phpstan.neon src


- stage: Code Coverage
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"nette/di": "^3.0.0",
"nette/http": "^3.0.0",
"nette/tester": "^2.0",
"tracy/tracy": "^2.4"
"tracy/tracy": "^2.4",
"phpstan/phpstan-nette": "^0.12"
},
"conflict": {
"nette/di": "<3.0-stable"
Expand Down
2 changes: 2 additions & 0 deletions tests/phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
includes:
- ../vendor/phpstan/phpstan-nette/extension.neon

0 comments on commit acda8dd

Please sign in to comment.