-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
187 lines (157 loc) · 10.1 KB
/
phpstan-baseline.neon
File metadata and controls
187 lines (157 loc) · 10.1 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
parameters:
ignoreErrors:
-
rawMessage: 'Method chillerlan\HTTP\Utils\HeaderUtil::trimValues() should return array<int, string> but returns array<int, bool|float|int|string|null>.'
identifier: return.type
count: 1
path: src/HeaderUtil.php
-
rawMessage: 'Parameter #1 $json of function json_decode expects string, string|false given.'
identifier: argument.type
count: 1
path: src/MessageUtil.php
-
rawMessage: 'Method chillerlan\HTTP\Utils\QueryUtil::cleanParams() should return array<int|string, bool|float|int|string|null> but returns array<int|string, array<int|string, bool|float|int|string|null>|bool|float|int|string|null>.'
identifier: return.type
count: 1
path: src/QueryUtil.php
-
rawMessage: 'Method chillerlan\HTTP\Utils\QueryUtil::parse() should return array<string, array<string>|string> but returns array<string, list<string|null>|string|null>.'
identifier: return.type
count: 1
path: src/QueryUtil.php
-
rawMessage: 'Method chillerlan\HTTP\Utils\QueryUtil::recursiveRawurlencode() should return array<string>|string but returns array<int, array<string>|string>.'
identifier: return.type
count: 1
path: src/QueryUtil.php
-
rawMessage: 'Parameter #1 $callback of function array_map expects (callable(bool|float|int|string|null): mixed)|null, ''chillerlan\\HTTP…'' given.'
identifier: argument.type
count: 1
path: src/QueryUtil.php
-
rawMessage: 'Method chillerlan\HTTP\Utils\ServerUtil::normalizeFiles() should return array<string, Psr\Http\Message\UploadedFileInterface> but returns array<string, array<Psr\Http\Message\UploadedFileInterface>|Psr\Http\Message\UploadedFileInterface>.'
identifier: return.type
count: 1
path: src/ServerUtil.php
-
rawMessage: 'Method chillerlan\HTTP\Utils\ServerUtil::normalizeNestedFileSpec() should return array<Psr\Http\Message\UploadedFileInterface> but returns array<array<Psr\Http\Message\UploadedFileInterface>|Psr\Http\Message\UploadedFileInterface>.'
identifier: return.type
count: 1
path: src/ServerUtil.php
-
rawMessage: 'Method chillerlan\HTTP\Utils\StreamUtil::tryGetContents() should return string but returns string|false.'
identifier: return.type
count: 1
path: src/StreamUtil.php
-
rawMessage: Variable $contents might not be defined.
identifier: variable.undefined
count: 1
path: src/StreamUtil.php
-
rawMessage: Variable $handle might not be defined.
identifier: variable.undefined
count: 1
path: src/StreamUtil.php
-
rawMessage: 'Method chillerlan\HTTP\Utils\UriUtil::parseUrl() should return array{scheme?: string, host?: int|string, port?: string, user?: string, pass?: string, path?: string, query?: string, fragment?: string}|null but returns array{scheme?: string, host?: string, port?: int|string, user?: string, pass?: string, path?: string, query?: string, fragment?: string}.'
identifier: return.type
count: 1
path: src/UriUtil.php
-
rawMessage: 'Parameter #1 $callback of function array_map expects (callable(int<0, 65535>|string): mixed)|null, Closure(string): string given.'
identifier: argument.type
count: 1
path: src/UriUtil.php
-
rawMessage: 'Method chillerlan\HTTPTest\Utils\CookieTest::invalidNameProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
identifier: missingType.generics
count: 1
path: tests/CookieTest.php
-
rawMessage: Access to an undefined property chillerlan\HTTP\Utils\Emitter\ResponseEmitterInterface::$headers.
identifier: property.notFound
count: 5
path: tests/Emitter/SapiEmitterTest.php
-
rawMessage: 'Call to an undefined method chillerlan\HTTP\Utils\Emitter\ResponseEmitterInterface::getBodyContent().'
identifier: method.notFound
count: 3
path: tests/Emitter/SapiEmitterTest.php
-
rawMessage: 'Method chillerlan\HTTPTest\Utils\Emitter\SapiEmitterTest::contentRangeProvider() return type with generic class Generator does not specify its types: TKey, TValue, TSend, TReturn'
identifier: missingType.generics
count: 1
path: tests/Emitter/SapiEmitterTest.php
-
rawMessage: 'Property chillerlan\HTTP\Utils\Emitter\SapiEmitter@anonymous/tests/Emitter/SapiEmitterTest.php:32::$headers (array<int, array{string, bool, int}>) does not accept non-empty-array<int, array{header: string, replace: bool, response_code: int}|array{string, bool, int}>.'
identifier: assign.propertyType
count: 1
path: tests/Emitter/SapiEmitterTest.php
-
rawMessage: 'Method chillerlan\HTTPTest\Utils\HeaderUtilTest::headerDataProvider() should return array<string, array{array<int|string, bool|float|int|string|null>, array<string, string>}> but returns array{content-Type: array{array{Content-Type: ''application/x-www…''}, array{Content-Type: ''application/x-www…''}}, lowercasekey: array{array{lowercasekey: ''lowercasevalue''}, array{Lowercasekey: ''lowercasevalue''}}, UPPERCASEKEY: array{array{UPPERCASEKEY: ''UPPERCASEVALUE''}, array{Uppercasekey: ''UPPERCASEVALUE''}}, mIxEdCaSeKey: array{array{mIxEdCaSeKey: ''MiXeDcAsEvAlUe''}, array{Mixedcasekey: ''MiXeDcAsEvAlUe''}}, ''31i71casekey'': array{array{''31i71casekey'': ''31i71casevalue''}, array{''31i71casekey'': ''31i71casevalue''}}, numericvalue: array{array{''numericvalue:1''}, array{Numericvalue: ''1''}}, numericvalue2: array{array{numericvalue: 2}, array{Numericvalue: ''2''}}, keyvaluearray: array{array{array{foo: ''bar''}}, array{Foo: ''bar''}}, ...}.'
identifier: return.type
count: 1
path: tests/HeaderUtilTest.php
-
rawMessage: 'Method chillerlan\HTTPTest\Utils\MessageUtilTest::contentTypeProvider() should return array<string, array{string, string|null, string|null, string}> but returns array{''text/plain'': array{''foo'', null, null, ''text/plain''}, ''application/json'': array{''{}'', null, null, ''application/json''}, ''text/javascript (name)'': array{''{}'', ''test.js'', null, ''text/javascript''}, ''text/javascript (ext)'': array{''{}'', null, ''js'', ''text/javascript''}, ''text/x-php'': array{string|false, null, null, ''text/x-php''}, ''text/markdown'': array{string|false, null, ''md'', ''text/markdown''}}.'
identifier: return.type
count: 1
path: tests/MessageUtilTest.php
-
rawMessage: 'Parameter #1 $content of static method chillerlan\HTTP\Utils\MimeTypeUtil::getFromContent() expects string, string|false given.'
identifier: argument.type
count: 1
path: tests/MimeTypeUtilTest.php
-
rawMessage: 'Method chillerlan\HTTPTest\Utils\QueryUtilTest::parseQueryProvider() should return array<string, array{string, array<string, mixed>}> but returns array{''Does not need to parse when the string is empty'': array{'''', array{}}, ''Can parse mult-values items'': array{''q=a&q=b'', array{q: array{''a'', ''b''}}}, ''Can parse multi-valued items that use numeric indices'': array{''q[0]=a&q[1]=b'', array{''q[0]'': ''a'', ''q[1]'': ''b''}}, ''Can parse duplicates and does not include numeric indices'': array{''q[]=a&q[]=b'', array{''q[]'': array{''a'', ''b''}}}, ''Ensures that the value of "q" is an array'': array{''q[]=a'', array{''q[]'': ''a''}}, ''Does not modify "." to "_" like parse_str()'': array{''q.a=a&q.b=b'', array{''q.a'': ''a'', ''q.b'': ''b''}}, ''Can decode %%20 to " "'': array{''q%%20a=a%%20b'', array{''q a'': ''a b''}}, ''Can parse strings with no values by assigning each to null'': array{''a&q'', array{a: null, q: null}}, ...}.'
identifier: return.type
count: 1
path: tests/QueryUtilTest.php
-
rawMessage: 'Method chillerlan\HTTPTest\Utils\QueryUtilTest::queryParamDataProvider() should return array<string, array{0: int, 1: bool, 3: array<string, mixed>}> but returns array{''BOOLEANS_AS_BOOL (no remove)'': array{0, false, array{whatever: null, nope: '''', true: true, false: false, array: array{value: false}}}, BOOLEANS_AS_BOOL: array{0, true, array{true: true, false: false, array: array{value: false}}}, BOOLEANS_AS_INT: array{1, true, array{true: 1, false: 0, array: array{value: 0}}}, BOOLEANS_AS_INT_STRING: array{3, true, array{true: ''1'', false: ''0'', array: array{value: ''0''}}}, BOOLEANS_AS_STRING: array{2, true, array{true: ''true'', false: ''false'', array: array{value: ''false''}}}}.'
identifier: return.type
count: 1
path: tests/QueryUtilTest.php
-
rawMessage: 'Parameter #1 $data of static method chillerlan\HTTP\Utils\QueryUtil::recursiveRawurlencode() expects array<int, bool|float|int|string|null>|bool|float|int|string, object{}&stdClass given.'
identifier: argument.type
count: 1
path: tests/QueryUtilTest.php
-
rawMessage: 'Parameter #1 $params of static method chillerlan\HTTP\Utils\QueryUtil::cleanParams() expects array<int|string, bool|float|int|string|null>, array<string, array<string, bool>|bool|string|null> given.'
identifier: argument.type
count: 1
path: tests/QueryUtilTest.php
-
rawMessage: PHPDoc tag @var for variable $normalized has no value type specified in iterable type array.
identifier: missingType.iterableValue
count: 2
path: tests/ServerUtilTest.php
-
rawMessage: 'Parameter #1 $files of method chillerlan\HTTP\Utils\ServerUtil::normalizeFiles() expects array<string, string>, array<string, array<int, array<string, int|string>|Psr\Http\Message\UploadedFileInterface>> given.'
identifier: argument.type
count: 1
path: tests/ServerUtilTest.php
-
rawMessage: 'Parameter #1 $files of method chillerlan\HTTP\Utils\ServerUtil::normalizeFiles() expects array<string, string>, array<string, array<string, list<int|string>>> given.'
identifier: argument.type
count: 1
path: tests/ServerUtilTest.php
-
rawMessage: 'Parameter #1 $resource of method Psr\Http\Message\StreamFactoryInterface::createStreamFromResource() expects resource, resource|false given.'
identifier: argument.type
count: 2
path: tests/StreamUtilTest.php
-
rawMessage: 'Parameter #1 $stream of function fclose expects resource, resource|false given.'
identifier: argument.type
count: 1
path: tests/StreamUtilTest.php
-
rawMessage: 'Parameter #1 $stream of function stream_get_meta_data expects resource, resource|false given.'
identifier: argument.type
count: 1
path: tests/StreamUtilTest.php