Skip to content

Commit

Permalink
add phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
matej21 committed Mar 14, 2018
1 parent 4c1565e commit ef7e137
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: php

php:
- 7.1

cache:
directories:
- $HOME/.composer/cache

before_script:
- composer self-update --no-interaction

jobs:
include:
- stage: PHPStan
install: composer update --prefer-dist
script: vendor/bin/phpstan analyse --configuration phpstan.neon --level 7 src/
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
},
"require-dev": {
"nette/utils": "~2.4",
"nette/reflection": "^2.4"
"nette/reflection": "^2.4",
"phpstan/phpstan-shim": "^0.9.2",
"mockery/mockery": "^1.0"
},
"autoload": {
"classmap": [
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parameters:
ignoreErrors:
- '#Call to an undefined method Nette\\DI\\Container::setAppContainer\(\)#'

0 comments on commit ef7e137

Please sign in to comment.