Skip to content

Commit ee07b36

Browse files
committed
Introduce PHPStan
1 parent 1a87ffe commit ee07b36

File tree

5 files changed

+740
-4
lines changed

5 files changed

+740
-4
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ before_script:
1313
script:
1414
- ./vendor/bin/php-cs-fixer fix --diff --verbose --dry-run
1515
- ./vendor/bin/phpunit --coverage-clover coverage-clover.xml
16+
- ./vendor/bin/phpstan analyse -c phpstan.neon --level max src tests
1617

1718
after_script:
1819
- wget https://scrutinizer-ci.com/ocular.phar && php ocular.phar code-coverage:upload --format=php-clover coverage-clover.xml

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"check": [
88
"php-cs-fixer fix --ansi --dry-run --diff",
9-
"phpunit --color=always"
9+
"phpunit --color=always",
10+
"phpstan analyse -c phpstan.neon --level max src tests"
1011
],
1112
"fix": [
1213
"php-cs-fixer fix --ansi"
@@ -30,7 +31,8 @@
3031
"require-dev": {
3132
"friendsofphp/php-cs-fixer": "^2.9",
3233
"zendframework/zend-diactoros": "^1.7",
33-
"phpunit/phpunit": "@stable"
34+
"phpunit/phpunit": "@stable",
35+
"phpstan/phpstan": "^0.9.2"
3436
},
3537
"license": "MIT"
3638
}

0 commit comments

Comments
 (0)