Skip to content

Commit

Permalink
Added PHPStan, apply changes for level 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Majkl578 committed Jun 26, 2018
1 parent 3979efe commit 752f9f5
Show file tree
Hide file tree
Showing 33 changed files with 1,146 additions and 445 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
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"php": "^7.1",
"ext-pdo": "*",
"doctrine/cache": "^1.0",
"doctrine/event-manager": "^1.0"
"doctrine/event-manager": "^1.0",
"jetbrains/phpstorm-stubs": "^2018.1.2",
"phpstan/phpstan": "^0.10"
},
"require-dev": {
"doctrine/coding-standard": "^4.0",
Expand Down
Loading

0 comments on commit 752f9f5

Please sign in to comment.