Skip to content

Commit

Permalink
Temporarily setup PHPStan to ignore PHPUnit errors from Mock types
Browse files Browse the repository at this point in the history
This is only until PHPStan supports intersections in PHPDoc in 0.9.
  • Loading branch information
OndraM committed Nov 20, 2017
1 parent d110cd4 commit c8bbf2e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
],
"analyze": [
"vendor/bin/php-cs-fixer fix -vvv --diff --dry-run --ansi",
"vendor/bin/phpstan.phar analyze ./src ./tests --level 7 --ansi"
"vendor/bin/phpstan.phar analyze ./src ./tests -c phpstan.neon --level 7 --ansi"
]
}
}
3 changes: 3 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parameters:
ignoreErrors:
- '#expects .*, PHPUnit_Framework_MockObject_MockObject given#'

0 comments on commit c8bbf2e

Please sign in to comment.