Skip to content

Commit

Permalink
Update phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
enumag committed Jul 15, 2017
1 parent 6493a73 commit 821ca70
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -28,7 +28,7 @@ before_script:
script:
- "! (composer outdated --direct | grep ^)"
- vendor-tools/bin/php-cs-fixer fix --dry-run
- vendor-tools/bin/phpstan analyse --level=5 --configuration=phpstan.neon src tests
- vendor-tools/bin/phpstan analyse --level=7 --configuration=phpstan.neon src tests
- vendor/bin/codecept run $coverage

after_success:
Expand Down
6 changes: 3 additions & 3 deletions composer-tools.json
@@ -1,8 +1,8 @@
{
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.0.0",
"phpstan/phpstan": "^0.6.3",
"phpstan/phpstan-nette": "^0.6.1"
"friendsofphp/php-cs-fixer": "@stable",
"phpstan/phpstan": "@stable",
"phpstan/phpstan-nette": "@stable"
},
"config": {
"vendor-dir": "vendor-tools"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -55,7 +55,7 @@
"@test"
],
"fix": "\"vendor-tools/bin/php-cs-fixer\" fix",
"analyse": "\"vendor-tools/bin/phpstan\" analyse --no-progress --level=5 --configuration=phpstan.neon src tests",
"analyse": "\"vendor-tools/bin/phpstan\" analyse --no-progress --level=7 --configuration=phpstan.neon src tests",
"test": [
"\"vendor/bin/codecept\" build",
"\"vendor/bin/codecept\" run --debug"
Expand Down
4 changes: 4 additions & 0 deletions phpstan.neon
Expand Up @@ -3,4 +3,8 @@ includes:
- vendor-tools/phpstan/phpstan-nette/rules.neon

parameters:
excludes_analyse:
- %rootDir%/../../../tests/_*

ignoreErrors:
- '#^Calling method [a-zA-Z]++\(\) on possibly nullable type Doctrine\\Common\\Persistence\\ObjectManager\|null#'

0 comments on commit 821ca70

Please sign in to comment.