-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
phpstan-baseline.neon
311 lines (250 loc) · 13.8 KB
/
phpstan-baseline.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
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
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
parameters:
ignoreErrors:
-
message: "#^Call to an undefined method Hyperf\\\\Database\\\\ConnectionInterface\\:\\:getPostProcessor\\(\\)\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Model.php
-
message: "#^Call to an undefined method Hyperf\\\\Database\\\\ConnectionInterface\\:\\:getQueryGrammar\\(\\)\\.$#"
count: 2
path: src/compoships/src/Database/Eloquent/Model.php
-
message: "#^Call to function is_array\\(\\) with string will always evaluate to false\\.$#"
count: 2
path: src/compoships/src/Database/Eloquent/Model.php
-
message: "#^Cannot call method getTable\\(\\) on string\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Model.php
-
message: "#^Method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Model\\:\\:qualifyColumn\\(\\) should return string but returns array\\<string\\>\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Model.php
-
message: "#^Call to function is_array\\(\\) with string will always evaluate to false\\.$#"
count: 9
path: src/compoships/src/Database/Eloquent/Relations/BelongsTo.php
-
message: "#^If condition is always false\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/BelongsTo.php
-
message: "#^Method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\BelongsTo\\:\\:getQualifiedForeignKey\\(\\) should return string but returns array\\<string\\>\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/BelongsTo.php
-
message: "#^Method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\BelongsTo\\:\\:getRelationExistenceQuery\\(\\) should return Hyperf\\\\Database\\\\Model\\\\Builder but returns Hyperf\\\\Database\\\\Query\\\\Builder\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/BelongsTo.php
-
message: "#^Offset \\*NEVER\\* does not exist on string\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/BelongsTo.php
-
message: "#^PHPDoc tag @extends contains generic type Hyperf\\\\Database\\\\Model\\\\Relations\\\\BelongsTo\\<Hyperf\\\\Database\\\\Model\\\\Model\\> but class Hyperf\\\\Database\\\\Model\\\\Relations\\\\BelongsTo is not generic\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/BelongsTo.php
-
message: "#^Parameter \\#1 \\$column of method Hyperf\\\\Database\\\\Query\\\\Builder\\:\\:whereIn\\(\\) expects string, array\\<int\\<0, max\\>, string\\> given\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/BelongsTo.php
-
message: "#^Parameter \\#2 \\$array of function array_map expects array, string given\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/BelongsTo.php
-
message: "#^Strict comparison using \\=\\=\\= between array and array\\{null\\} will always evaluate to false\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/BelongsTo.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/BelongsTo.php
-
message: "#^Call to an undefined method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\<TRelatedModel of FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\Model\\>\\:\\:qualifyRelatedColumn\\(\\)\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasMany.php
-
message: "#^Call to an undefined method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\<TRelatedModel of FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\Model\\>\\:\\:qualifySubSelectColumn\\(\\)\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasMany.php
-
message: "#^Call to an undefined static method Hyperf\\\\Database\\\\Model\\\\Relations\\\\HasMany\\:\\:addOneOfManyJoinSubQueryConstraints\\(\\)\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasMany.php
-
message: "#^Call to function is_array\\(\\) with string will always evaluate to false\\.$#"
count: 9
path: src/compoships/src/Database/Eloquent/Relations/HasMany.php
-
message: "#^Method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\:\\:getForeignKeyName\\(\\) should return string but returns array\\<string\\>\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasMany.php
-
message: "#^Method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\:\\:getQualifiedParentKeyName\\(\\) should return string but returns array\\<string\\>\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasMany.php
-
message: "#^Method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany\\:\\:getRelationExistenceQueryForSelfRelation\\(\\) should return Hyperf\\\\Database\\\\Model\\\\Builder but returns Hyperf\\\\Database\\\\Query\\\\Builder\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasMany.php
-
message: "#^PHPDoc tag @extends contains generic type Hyperf\\\\Database\\\\Model\\\\Relations\\\\HasMany\\<FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\Model\\> but class Hyperf\\\\Database\\\\Model\\\\Relations\\\\HasMany is not generic\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasMany.php
-
message: "#^PHPDoc tag @extends has invalid type FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\Model\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasMany.php
-
message: "#^PHPDoc tag @template TRelatedModel for class FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\HasMany has invalid bound type FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\Model\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasMany.php
-
message: "#^Call to an undefined method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\HasOne\\<TRelatedModel of Hyperf\\\\Database\\\\Model\\\\Model\\>\\:\\:qualifyRelatedColumn\\(\\)\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasOne.php
-
message: "#^Call to an undefined method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\HasOne\\<TRelatedModel of Hyperf\\\\Database\\\\Model\\\\Model\\>\\:\\:qualifySubSelectColumn\\(\\)\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasOne.php
-
message: "#^Call to an undefined static method Hyperf\\\\Database\\\\Model\\\\Relations\\\\HasOne\\:\\:addOneOfManyJoinSubQueryConstraints\\(\\)\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasOne.php
-
message: "#^Call to function is_array\\(\\) with string will always evaluate to false\\.$#"
count: 11
path: src/compoships/src/Database/Eloquent/Relations/HasOne.php
-
message: "#^Method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\HasOne\\:\\:getDefaultFor\\(\\) should return Hyperf\\\\Database\\\\Model\\\\Model\\|null but empty return statement found\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasOne.php
-
message: "#^Method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\HasOne\\:\\:getForeignKeyName\\(\\) should return string but returns array\\<string\\>\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasOne.php
-
message: "#^Method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\HasOne\\:\\:getQualifiedParentKeyName\\(\\) should return string but returns array\\<string\\>\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasOne.php
-
message: "#^Method FriendsOfHyperf\\\\Compoships\\\\Database\\\\Eloquent\\\\Relations\\\\HasOne\\:\\:getRelationExistenceQueryForSelfRelation\\(\\) should return Hyperf\\\\Database\\\\Model\\\\Builder but returns Hyperf\\\\Database\\\\Query\\\\Builder\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasOne.php
-
message: "#^Offset \\*NEVER\\* does not exist on string\\.$#"
count: 2
path: src/compoships/src/Database/Eloquent/Relations/HasOne.php
-
message: "#^PHPDoc tag @extends contains generic type Hyperf\\\\Database\\\\Model\\\\Relations\\\\HasOne\\<Hyperf\\\\Database\\\\Model\\\\Model\\> but class Hyperf\\\\Database\\\\Model\\\\Relations\\\\HasOne is not generic\\.$#"
count: 1
path: src/compoships/src/Database/Eloquent/Relations/HasOne.php
-
message: "#^Call to function is_array\\(\\) with string will always evaluate to false\\.$#"
count: 1
path: src/compoships/src/Database/Query/Builder.php
-
message: "#^Call to function is_array\\(\\) with string\\|null will always evaluate to false\\.$#"
count: 1
path: src/compoships/src/Database/Query/Builder.php
-
message: "#^Result of && is always false\\.$#"
count: 1
path: src/compoships/src/Database/Query/Builder.php
-
message: "#^Call to an undefined method Hyperf\\\\Collection\\\\HigherOrderCollectionProxy\\:\\:__invoke\\(\\)\\.$#"
count: 1
path: src/http-client/src/PendingRequest.php
-
message: "#^Method FriendsOfHyperf\\\\Http\\\\Client\\\\PendingRequest\\:\\:runBeforeSendingCallbacks\\(\\) has invalid return type GuzzleHttp\\\\Psr7\\\\RequestInterface\\.$#"
count: 1
path: src/http-client/src/PendingRequest.php
-
message: "#^Method FriendsOfHyperf\\\\Http\\\\Client\\\\PendingRequest\\:\\:send\\(\\) should return FriendsOfHyperf\\\\Http\\\\Client\\\\Response but returns GuzzleHttp\\\\Promise\\\\PromiseInterface\\.$#"
count: 1
path: src/http-client/src/PendingRequest.php
-
message: "#^Negated boolean expression is always false\\.$#"
count: 1
path: src/http-client/src/PendingRequest.php
-
message: "#^Parameter \\$request of method FriendsOfHyperf\\\\Http\\\\Client\\\\PendingRequest\\:\\:runBeforeSendingCallbacks\\(\\) has invalid type GuzzleHttp\\\\Psr7\\\\RequestInterface\\.$#"
count: 1
path: src/http-client/src/PendingRequest.php
-
message: "#^Parameter \\$response of method FriendsOfHyperf\\\\Http\\\\Client\\\\PendingRequest\\:\\:handlePromiseResponse\\(\\) has invalid type Illuminate\\\\Http\\\\Client\\\\Response\\.$#"
count: 1
path: src/http-client/src/PendingRequest.php
-
message: "#^Property FriendsOfHyperf\\\\Http\\\\Client\\\\PendingRequest\\:\\:\\$client \\(GuzzleHttp\\\\Client\\) on left side of \\?\\? is not nullable\\.$#"
count: 1
path: src/http-client/src/PendingRequest.php
-
message: "#^Property FriendsOfHyperf\\\\Http\\\\Client\\\\PendingRequest\\:\\:\\$pendingBody \\(string\\) does not accept null\\.$#"
count: 1
path: src/http-client/src/PendingRequest.php
-
message: "#^Result of && is always false\\.$#"
count: 3
path: src/http-client/src/PendingRequest.php
-
message: "#^Result of \\|\\| is always true\\.$#"
count: 1
path: src/http-client/src/PendingRequest.php
-
message: "#^Right side of && is always true\\.$#"
count: 1
path: src/http-client/src/PendingRequest.php
-
message: "#^Ternary operator condition is always true\\.$#"
count: 1
path: src/http-client/src/PendingRequest.php
-
message: "#^Unreachable statement \\- code above always terminates\\.$#"
count: 1
path: src/http-client/src/PendingRequest.php
-
message: "#^Method FriendsOfHyperf\\\\Http\\\\Client\\\\Response\\:\\:toException\\(\\) should return FriendsOfHyperf\\\\Http\\\\Client\\\\RequestException\\|null but return statement is missing\\.$#"
count: 1
path: src/http-client/src/Response.php
-
message: "#^Property FriendsOfHyperf\\\\Http\\\\Client\\\\Response\\:\\:\\$response \\(Psr\\\\Http\\\\Message\\\\ResponseInterface\\) does not accept Psr\\\\Http\\\\Message\\\\MessageInterface\\.$#"
count: 1
path: src/http-client/src/Response.php
-
message: "#^Property FriendsOfHyperf\\\\Http\\\\Client\\\\ResponseSequence\\:\\:\\$emptyResponse \\(GuzzleHttp\\\\Promise\\\\PromiseInterface\\) on left side of \\?\\? is not nullable\\.$#"
count: 1
path: src/http-client/src/ResponseSequence.php
-
message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(ReflectionType\\)\\: mixed\\)\\|null, Closure\\(ReflectionNamedType\\)\\: string given\\.$#"
count: 1
path: src/ide-helper/src/Command/MacroCommand.php
-
message: "#^Method Hyperf\\\\Database\\\\Connection\\:\\:getDoctrineSchemaManager\\(\\) invoked with 1 parameter, 0 required\\.$#"
count: 1
path: src/ide-helper/src/Command/ModelCommand.php
-
message: "#^Constructor of class FriendsOfHyperf\\\\IdeHelper\\\\Method has an unused parameter \\$alias\\.$#"
count: 1
path: src/ide-helper/src/Method.php
-
message: "#^If condition is always true\\.$#"
count: 1
path: src/ide-helper/src/Method.php
-
message: "#^Parameter \\#1 \\$method of method FriendsOfHyperf\\\\IdeHelper\\\\Method\\:\\:getParameters\\(\\) expects ReflectionMethod, ReflectionFunctionAbstract given\\.$#"
count: 1
path: src/ide-helper/src/Method.php
-
message: "#^Parameter \\#1 \\$method of method FriendsOfHyperf\\\\IdeHelper\\\\Method\\:\\:initClassDefinedProperties\\(\\) expects ReflectionMethod, ReflectionFunctionAbstract given\\.$#"
count: 1
path: src/ide-helper/src/Method.php
-
message: "#^Parameter \\#1 \\$method of method FriendsOfHyperf\\\\IdeHelper\\\\Method\\:\\:initPhpDoc\\(\\) expects ReflectionMethod, ReflectionFunctionAbstract given\\.$#"
count: 1
path: src/ide-helper/src/Method.php
-
message: "#^Parameter \\#1 \\$reflectionMethod of method FriendsOfHyperf\\\\IdeHelper\\\\Method\\:\\:getInheritDoc\\(\\) expects ReflectionMethod, ReflectionFunctionAbstract given\\.$#"
count: 1
path: src/ide-helper/src/Method.php