Skip to content

Commit

Permalink
Parametrize PHPStan build in config file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean85 committed Oct 29, 2018
1 parent 6693f56 commit b44ab83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -48,7 +48,7 @@
}
},
"scripts": {
"phpstan": "vendor/bin/phpstan analyse src test --level 7 -c phpstan.neon",
"phpstan": "vendor/bin/phpstan analyse",
"cs-check": "vendor/bin/php-cs-fixer fix --verbose --diff --dry-run",
"cs-fix": "vendor/bin/php-cs-fixer fix --verbose --diff"
},
Expand Down
4 changes: 4 additions & 0 deletions phpstan.neon
@@ -1,4 +1,8 @@
parameters:
level: 7
paths:
- src/
- test/
ignoreErrors:
- '/Symfony\\Component\\Console\\Event\\ConsoleExceptionEvent/'
- '/Call to an undefined method Symfony\\Component\\Console\\Event\\ConsoleEvent::getExitCode\(\)\./'
Expand Down

0 comments on commit b44ab83

Please sign in to comment.