Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit fb0c937

Browse files
committed
Merge branch 'hotfix/565-phpstan' into release-3.0.0
Close #565
2 parents 71b576b + 4ec0f8b commit fb0c937

File tree

8 files changed

+801
-12
lines changed

8 files changed

+801
-12
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ matrix:
3030
- php: 7.2
3131
env:
3232
- DEPS=locked
33+
- PHPSTAN_CHECK=true
3334
- php: 7.2
3435
env:
3536
- DEPS=latest
@@ -48,6 +49,7 @@ script:
4849
- if [[ $TEST_COVERAGE == 'true' ]]; then composer test-coverage ; else composer test ; fi
4950
- if [[ $CS_CHECK == 'true' ]]; then composer cs-check ; fi
5051
- if [[ $CS_CHECK == 'true' ]]; then composer license-check ; fi
52+
- if [[ $PHPSTAN_CHECK == 'true' ]]; then composer phpstan ; fi
5153

5254
after_script:
5355
- if [[ $TEST_COVERAGE == 'true' ]]; then vendor/bin/php-coveralls -v ; fi

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
"filp/whoops": "^1.1.10 || ^2.1.13",
3838
"malukenho/docheader": "^0.1.6",
3939
"mockery/mockery": "^1.0",
40+
"phpstan/phpstan": "^0.9.2",
41+
"phpstan/phpstan-strict-rules": "^0.9.0",
4042
"phpunit/phpunit": "^7.0.1",
4143
"zendframework/zend-coding-standard": "~1.0.0",
4244
"zendframework/zend-expressive-aurarouter": "^3.0.0alpha2",
@@ -92,6 +94,7 @@
9294
],
9395
"cs-check": "phpcs",
9496
"cs-fix": "phpcbf",
97+
"phpstan": "phpstan analyze -l max -c phpstan.neon ./src",
9598
"test": "phpunit --colors=always",
9699
"test-coverage": "phpunit --colors=always --coverage-clover clover.xml",
97100
"license-check": "docheader check src/ test/"

0 commit comments

Comments
 (0)