Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
lkm committed Jul 20, 2020
1 parent b8e9f44 commit 1db07f0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- stage: "Tests"
name: "Unit Tests"
script: vendor/bin/phpunit -c . --coverage-clover build/logs/clover.xml
- script: vendor/bin/phpstan analyse src/ --level 5 --no-progress
- script: vendor/bin/phpstan analyse -c phpstan.neon
name: "Static Analyser"

before_script:
Expand Down
7 changes: 5 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
parameters:
ignoreErrors:
- '#Unsafe usage of new static().#'
level: 5
paths:
- src/
ignoreErrors:
- '#Unsafe usage of new static\(\).#'

0 comments on commit 1db07f0

Please sign in to comment.