forked from getsentry/sentry-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
25 lines (25 loc) · 1.07 KB
/
phpstan.neon
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
parameters:
tipsOfTheDay: false
level: 7
paths:
- src
- tests
ignoreErrors:
- '/Argument of an invalid type object supplied for foreach, only iterables are supported/'
- '/Http\\Client\\Curl\\Client/'
- '/^Parameter #1 \$object of method ReflectionProperty::setValue\(\) expects object, null given\.$/' # https://github.com/phpstan/phpstan/pull/2340
-
message: /^Cannot assign offset 'os' to array\|string\.$/
path: src/Event.php
-
message: "/^Parameter #1 \\$function of function register_shutdown_function expects callable\\(\\): void, 'register_shutdown…' given\\.$/"
path: src/Transport/HttpTransport.php
-
message: '/^Argument of an invalid type array\|object supplied for foreach, only iterables are supported\.$/'
path: src/Util/JSON.php
-
message: '/^Constant JSON_INVALID_UTF8_SUBSTITUTE not found\.$/'
path: src/Util/JSON.php
excludes_analyse:
- tests/resources
- tests/Fixtures