Skip to content

Commit

Permalink
Introduce PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
PowerKiKi committed Jun 13, 2018
1 parent 1a87ffe commit ee07b36
Show file tree
Hide file tree
Showing 5 changed files with 740 additions and 4 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ before_script:
script:
- ./vendor/bin/php-cs-fixer fix --diff --verbose --dry-run
- ./vendor/bin/phpunit --coverage-clover coverage-clover.xml
- ./vendor/bin/phpstan analyse -c phpstan.neon --level max src tests

after_script:
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage-clover.xml
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"check": [
"php-cs-fixer fix --ansi --dry-run --diff",
"phpunit --color=always"
"phpunit --color=always",
"phpstan analyse -c phpstan.neon --level max src tests"
],
"fix": [
"php-cs-fixer fix --ansi"
Expand All @@ -30,7 +31,8 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.9",
"zendframework/zend-diactoros": "^1.7",
"phpunit/phpunit": "@stable"
"phpunit/phpunit": "@stable",
"phpstan/phpstan": "^0.9.2"
},
"license": "MIT"
}
Loading

0 comments on commit ee07b36

Please sign in to comment.