Skip to content

Commit

Permalink
Added phpstan config file
Browse files Browse the repository at this point in the history
  • Loading branch information
leoloso committed Apr 14, 2020
1 parent 5c2c06d commit 8ae289c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ composer test

## Static Analysis

Execute [phpstan](https://github.com/phpstan/phpstan) with level 8 (strictest mode):
Execute [phpstan](https://github.com/phpstan/phpstan) with level 5:

``` bash
composer analyse
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"test": "phpunit",
"check-style": "phpcs src tests",
"fix-style": "phpcbf src tests",
"analyse": "phpstan analyse -l 8 src tests"
"analyse": "phpstan analyse -c phpstan.neon"
},
"extra": {
"branch-alias": {
Expand Down
6 changes: 6 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
parameters:
level: 5
paths:
- src
- tests

0 comments on commit 8ae289c

Please sign in to comment.