Skip to content

Commit

Permalink
updated phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Nov 4, 2020
1 parent 492e722 commit f0e4199
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v1
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none

- run: composer install --no-progress --prefer-dist
- run: composer phpstan
- run: composer phpstan -- --no-progress
continue-on-error: true # is only informative
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- stage: Static Analysis (informative)
php: 7.4
script:
- composer run-script phpstan
- composer phpstan -- --no-progress


- stage: Code Coverage
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
},
"minimum-stability": "dev",
"scripts": {
"phpstan": "phpstan analyse --level 5 src --configuration phpstan.neon",
"phpstan": "phpstan analyse",
"tester": "tester tests -s"
},
"extra": {
Expand Down
5 changes: 5 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
parameters:
level: 5

paths:
- src

ignoreErrors:
- "#^Unsafe usage of new static\\(\\)\\.$#"
- "#^.*\\:\\:__toString\\(\\) invoked with 1 parameter, 0 required\\.$#"
Expand Down

0 comments on commit f0e4199

Please sign in to comment.