forked from LinioIT/common-expressive
-
Notifications
You must be signed in to change notification settings - Fork 1
/
phpstan.neon
19 lines (19 loc) · 1.31 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
parameters:
level: max
checkMissingIterableValueType: false
paths:
- src
- tests
ignoreErrors:
- '#Parameter \#\d+ \$([^\s]+) of class ([^\s]+) constructor expects ([^,]+), object given#'
- '#Parameter \#\d+ \$([^\s]+) of method ([^\s]+) expects ([^,]+), object given#'
- '#Parameter \#\d+ \$([^\s]+) of function ([^\s]+) expects ([^\s]+), ([^\s]+) given.#'
- '#Parameter \#\d+ \$([^\s]+) of method ([^\s]+)::([^\s]+)\(\) expects ([^\s]+), ([^\s]+) given.#'
- '#Call to an undefined method Prophecy\\Prophecy\\ObjectProphecy::[a-zA-Z0-9_]+\(\)#'
- '#Method ([^\s]+)::([^\s]+)\(\) should return ([^\s]+) but returns ([^\s]+).#'
- '#Cannot call method [a-zA-Z0-9\\_]+\(\) on mixed.#'
- '#Parameter \#\d+ \$([^\s]+) of class ([^\s]+) constructor expects object\|resource\|string, resource\|false given.#'
- '#Parameter \#\d+ \$([^\s]+) of static method ([^\s]+)::([^\s]+)\(\) expects ([^\s]+), ([^\s]+) given.#'
- '#Method Linio\\Common\\Laminas\\Middleware\\ConvertErrorToJsonResponse::buildGenericErrorBody\(\) has parameter \$error with no type specified.#'
- '#Result of method Linio\\Common\\Laminas\\Validation\\ValidationService::validate\(\) \(void\) is used.#'
- "#Cannot access offset 'logging' on mixed.#"