Skip to content

Commit

Permalink
Add PHPStan 0.10, apply level 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Majkl578 committed Jun 27, 2018
1 parent 3979efe commit df43437
Show file tree
Hide file tree
Showing 30 changed files with 1,057 additions and 355 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ vendor/
*.phpunit.xml
/phpunit.xml
/.phpcs-cache
/phpstan.neon
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,11 @@ jobs:
- composer config minimum-stability dev
- travis_retry composer update --prefer-dist

- stage: Code Quality
env: DB=none STATIC_ANALYSIS
install: travis_retry composer update --prefer-dist
script: vendor/bin/phpstan analyse

- stage: Pull request coding standard
if: type = pull_request
php: 7.1
Expand Down
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
},
"require-dev": {
"doctrine/coding-standard": "^4.0",
"jetbrains/phpstorm-stubs": "^2018.1.2",
"phpstan/phpstan": "^0.10",
"phpunit/phpunit": "^7.1.2",
"phpunit/phpunit-mock-objects": "!=3.2.4,!=3.2.5",
"symfony/console": "^2.0.5||^3.0",
Expand Down
Loading

0 comments on commit df43437

Please sign in to comment.