forked from getsentry/sentry-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
phpstan.neon
48 lines (48 loc) · 2.39 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
parameters:
tipsOfTheDay: false
level: 7
paths:
- src
- tests
ignoreErrors:
- '/Argument of an invalid type object supplied for foreach, only iterables are supported/'
- '/^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
-
message: '/^Class Http\\Client\\Curl\\Client not found\.$/'
path: src/HttpClient/HttpClientFactory.php
-
message: '/^Class Http\\Adapter\\Guzzle6\\Client not found\.$/'
path: src/HttpClient/HttpClientFactory.php
-
message: '/^Instantiated class Http\\Client\\Curl\\Client not found\.$/'
path: src/HttpClient/HttpClientFactory.php
-
message: '/^Call to static method createWithConfig\(\) on an unknown class Http\\Adapter\\Guzzle6\\Client\.$/'
path: src/HttpClient/HttpClientFactory.php
-
message: '/^Access to constant PROXY on an unknown class GuzzleHttp\\RequestOptions\.$/'
path: src/HttpClient/HttpClientFactory.php
-
message: '/^Property Sentry\\HttpClient\\HttpClientFactory::\$httpClient \(Http\\Client\\HttpAsyncClient\|null\) does not accept Http\\Client\\Curl\\Client.$/'
path: src/HttpClient/HttpClientFactory.php
-
message: '/^Access to an undefined property Sentry\\Integration\\IntegrationInterface::\$options\.$/'
path: src/Integration/IgnoreErrorsIntegration.php
-
message: '/^Call to an undefined method Sentry\\Integration\\IntegrationInterface::shouldDropEvent\(\)\.$/'
path: src/Integration/IgnoreErrorsIntegration.php
excludes_analyse:
- tests/resources
- tests/Fixtures