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 439903f commit 9bc9ab4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -31,7 +31,7 @@ before_script:
script:
- "! (composer outdated --direct | grep ^)"
- if php -v | grep -q 'PHP 7'; then vendor-tools/bin/php-cs-fixer fix --dry-run; fi
- if php -v | grep -q 'PHP 7'; then vendor-tools/bin/phpstan analyse --level=5 --configuration=phpstan.neon src tests; fi
- if php -v | grep -q 'PHP 7'; then vendor-tools/bin/phpstan analyse --level=7 --configuration=phpstan.neon src tests; fi
- 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 @@ -41,7 +41,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
3 changes: 3 additions & 0 deletions phpstan.neon
Expand Up @@ -4,3 +4,6 @@ includes:

parameters:
ignoreErrors:

excludes_analyse:
- %rootDir%/../../../tests/_helpers/*

0 comments on commit 9bc9ab4

Please sign in to comment.