-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathphpstan-baseline.neon
341 lines (274 loc) · 16.4 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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
parameters:
ignoreErrors:
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\PsrLog\\\\ArrayLogger\\:\\:log\\(\\) has parameter \\$context with no value type specified in iterable type array\\.$#"
count: 1
path: src/Bridge/PsrLog/ArrayLogger.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\PsrLog\\\\ArrayLogger\\:\\:messages\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Bridge/PsrLog/ArrayLogger.php
-
message: "#^Property Phpactor\\\\WorseReflection\\\\Bridge\\\\PsrLog\\\\ArrayLogger\\:\\:\\$messages has no type specified\\.$#"
count: 1
path: src/Bridge/PsrLog/ArrayLogger.php
-
message: "#^Call to method head\\(\\) on an unknown class Phpactor\\\\Name\\\\Name\\.$#"
count: 1
path: src/Bridge/TolerantParser/Diagnostics/UnresolvableNameDiagnostic.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Diagnostics\\\\UnresolvableNameDiagnostic\\:\\:name\\(\\) has invalid return type Phpactor\\\\Name\\\\Name\\.$#"
count: 1
path: src/Bridge/TolerantParser/Diagnostics/UnresolvableNameDiagnostic.php
-
message: "#^Parameter \\$name of method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Diagnostics\\\\UnresolvableNameDiagnostic\\:\\:__construct\\(\\) has invalid type Phpactor\\\\Name\\\\Name\\.$#"
count: 1
path: src/Bridge/TolerantParser/Diagnostics/UnresolvableNameDiagnostic.php
-
message: "#^Parameter \\$name of method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Diagnostics\\\\UnresolvableNameDiagnostic\\:\\:forClass\\(\\) has invalid type Phpactor\\\\Name\\\\Name\\.$#"
count: 1
path: src/Bridge/TolerantParser/Diagnostics/UnresolvableNameDiagnostic.php
-
message: "#^Parameter \\$name of method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Diagnostics\\\\UnresolvableNameDiagnostic\\:\\:forFunction\\(\\) has invalid type Phpactor\\\\Name\\\\Name\\.$#"
count: 1
path: src/Bridge/TolerantParser/Diagnostics/UnresolvableNameDiagnostic.php
-
message: "#^Property Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Diagnostics\\\\UnresolvableNameDiagnostic\\:\\:\\$name has unknown class Phpactor\\\\Name\\\\Name as its type\\.$#"
count: 1
path: src/Bridge/TolerantParser/Diagnostics/UnresolvableNameDiagnostic.php
-
message: "#^Call to static method fromString\\(\\) on an unknown class Phpactor\\\\Name\\\\FullyQualifiedName\\.$#"
count: 2
path: src/Bridge/TolerantParser/Diagnostics/UnresolvableNameProvider.php
-
message: "#^Property Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Diagnostics\\\\UnresolvableNameProvider\\:\\:\\$functionCache \\(array\\<string, bool\\>\\) does not accept array\\<int\\|string, bool\\>\\.$#"
count: 2
path: src/Bridge/TolerantParser/Diagnostics/UnresolvableNameProvider.php
-
message: "#^Expression on left side of \\?\\? is always null\\.$#"
count: 2
path: src/Bridge/TolerantParser/Patch/TolerantQualifiedNameResolver.php
-
message: "#^Instanceof between mixed and Microsoft\\\\PhpParser\\\\Node\\\\TraitSelectOrAliasClause will always evaluate to false\\.$#"
count: 1
path: src/Bridge/TolerantParser/Patch/TolerantQualifiedNameResolver.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Patch\\\\TolerantQualifiedNameResolver\\:\\:getResolvedName\\(\\) has no return type specified\\.$#"
count: 1
path: src/Bridge/TolerantParser/Patch/TolerantQualifiedNameResolver.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Patch\\\\TolerantQualifiedNameResolver\\:\\:getResolvedName\\(\\) has parameter \\$namespaceDefinition with no type specified\\.$#"
count: 1
path: src/Bridge/TolerantParser/Patch/TolerantQualifiedNameResolver.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Patch\\\\TolerantQualifiedNameResolver\\:\\:getResolvedName\\(\\) has parameter \\$node with no type specified\\.$#"
count: 1
path: src/Bridge/TolerantParser/Patch/TolerantQualifiedNameResolver.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Patch\\\\TolerantQualifiedNameResolver\\:\\:isConstantName\\(\\) has parameter \\$node with no type specified\\.$#"
count: 1
path: src/Bridge/TolerantParser/Patch/TolerantQualifiedNameResolver.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Patch\\\\TolerantQualifiedNameResolver\\:\\:tryResolveFromImportTable\\(\\) has parameter \\$node with no type specified\\.$#"
count: 1
path: src/Bridge/TolerantParser/Patch/TolerantQualifiedNameResolver.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Patch\\\\TolerantQualifiedNameResolver\\:\\:tryResolveFromImportTable\\(\\) should return null but returns Microsoft\\\\PhpParser\\\\ResolvedName\\.$#"
count: 1
path: src/Bridge/TolerantParser/Patch/TolerantQualifiedNameResolver.php
-
message: "#^Result of && is always false\\.$#"
count: 1
path: src/Bridge/TolerantParser/Patch/TolerantQualifiedNameResolver.php
-
message: "#^Variable \\$resolvedName on left side of \\?\\? always exists and is always null\\.$#"
count: 2
path: src/Bridge/TolerantParser/Patch/TolerantQualifiedNameResolver.php
-
message: "#^Strict comparison using \\=\\=\\= between null and Microsoft\\\\PhpParser\\\\ResolvedName will always evaluate to false\\.$#"
count: 1
path: src/Bridge/TolerantParser/Reflection/AbstractReflectionClassMember.php
-
message: "#^Property Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Reflection\\\\ReflectionMethodCall\\:\\:\\$node is unused\\.$#"
count: 1
path: src/Bridge/TolerantParser/Reflection/ReflectionMethodCall.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Reflection\\\\TraitImport\\\\TraitImport\\:\\:__construct\\(\\) has parameter \\$traitAliases with no value type specified in iterable type array\\.$#"
count: 1
path: src/Bridge/TolerantParser/Reflection/TraitImport/TraitImport.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Reflection\\\\TraitImport\\\\TraitImport\\:\\:getAlias\\(\\) has parameter \\$name with no type specified\\.$#"
count: 1
path: src/Bridge/TolerantParser/Reflection/TraitImport/TraitImport.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Reflection\\\\TraitImport\\\\TraitImport\\:\\:hasAliasFor\\(\\) has parameter \\$name with no type specified\\.$#"
count: 1
path: src/Bridge/TolerantParser/Reflection/TraitImport/TraitImport.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Reflection\\\\TraitImport\\\\TraitImport\\:\\:traitAliases\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Bridge/TolerantParser/Reflection/TraitImport/TraitImport.php
-
message: "#^Argument of an invalid type Microsoft\\\\PhpParser\\\\Node\\\\DelimitedList\\\\TraitSelectOrAliasClauseList supplied for foreach, only iterables are supported\\.$#"
count: 1
path: src/Bridge/TolerantParser/Reflection/TraitImport/TraitImports.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Bridge\\\\TolerantParser\\\\Reflection\\\\TraitImport\\\\TraitImports\\:\\:visiblity\\(\\) has no return type specified\\.$#"
count: 1
path: src/Bridge/TolerantParser/Reflection/TraitImport/TraitImports.php
-
message: "#^PHPDoc tag @var above a method has no effect\\.$#"
count: 1
path: src/Core/Cache/TtlCache.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\DefaultValue\\:\\:__construct\\(\\) has parameter \\$value with no type specified\\.$#"
count: 1
path: src/Core/DefaultValue.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\DefaultValue\\:\\:fromValue\\(\\) has parameter \\$value with no type specified\\.$#"
count: 1
path: src/Core/DefaultValue.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\DefaultValue\\:\\:value\\(\\) has no return type specified\\.$#"
count: 1
path: src/Core/DefaultValue.php
-
message: "#^Property Phpactor\\\\WorseReflection\\\\Core\\\\DefaultValue\\:\\:\\$undefined has no type specified\\.$#"
count: 1
path: src/Core/DefaultValue.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\DocBlock\\\\DocBlockInspector\\:\\:typesForMethod\\(\\) return type has no value type specified in iterable type array\\.$#"
count: 1
path: src/Core/DocBlock/DocBlockInspector.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Inference\\\\LocalAssignments\\:\\:fromArray\\(\\) has parameter \\$assignments with no value type specified in iterable type array\\.$#"
count: 1
path: src/Core/Inference/LocalAssignments.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Inference\\\\MemberTypeResolver\\:\\:memberType\\(\\) has no return type specified\\.$#"
count: 1
path: src/Core/Inference/MemberTypeResolver.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Inference\\\\PropertyAssignments\\:\\:create\\(\\) has no return type specified\\.$#"
count: 1
path: src/Core/Inference/PropertyAssignments.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Inference\\\\PropertyAssignments\\:\\:fromArray\\(\\) has parameter \\$assignments with no value type specified in iterable type array\\.$#"
count: 1
path: src/Core/Inference/PropertyAssignments.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Name\\:\\:fromParts\\(\\) has parameter \\$parts with no value type specified in iterable type array\\.$#"
count: 1
path: src/Core/Name.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Name\\:\\:prepend\\(\\) has parameter \\$name with no type specified\\.$#"
count: 1
path: src/Core/Name.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Name\\:\\:prepend\\(\\) should return static\\(Phpactor\\\\WorseReflection\\\\Core\\\\Name\\) but returns Phpactor\\\\WorseReflection\\\\Core\\\\Name\\.$#"
count: 1
path: src/Core/Name.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Name\\:\\:substitute\\(\\) has parameter \\$alias with no type specified\\.$#"
count: 1
path: src/Core/Name.php
-
message: "#^Class Phpactor\\\\WorseReflection\\\\Core\\\\NameImports implements generic interface IteratorAggregate but does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Core/NameImports.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\NameImports\\:\\:__construct\\(\\) has parameter \\$nameImports with no type specified\\.$#"
count: 1
path: src/Core/NameImports.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\NameImports\\:\\:fromNames\\(\\) has parameter \\$nameImports with no value type specified in iterable type array\\.$#"
count: 1
path: src/Core/NameImports.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\NameImports\\:\\:getByAlias\\(\\) has no return type specified\\.$#"
count: 1
path: src/Core/NameImports.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\NameImports\\:\\:getIterator\\(\\) return type with generic class ArrayIterator does not specify its types\\: TKey, TValue$#"
count: 1
path: src/Core/NameImports.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\NameImports\\:\\:hasAlias\\(\\) has no return type specified\\.$#"
count: 1
path: src/Core/NameImports.php
-
message: "#^Property Phpactor\\\\WorseReflection\\\\Core\\\\NameImports\\:\\:\\$nameImports has no type specified\\.$#"
count: 1
path: src/Core/NameImports.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\NodeText\\:\\:__construct\\(\\) has parameter \\$nodeText with no type specified\\.$#"
count: 1
path: src/Core/NodeText.php
-
message: "#^Parameter \\#1 \\$iterator of method AppendIterator\\<mixed,mixed,Iterator\\<TKey, TValue\\>\\>\\:\\:append\\(\\) expects Iterator\\<TKey, TValue\\>, Traversable\\<mixed, Phpactor\\\\WorseReflection\\\\Core\\\\Reflection\\\\ReflectionMember\\> given\\.$#"
count: 1
path: src/Core/Reflection/Collection/ChainReflectionMemberCollection.php
-
message: "#^Class Phpactor\\\\WorseReflection\\\\Core\\\\Reflection\\\\Collection\\\\ReflectionConstant not found\\.$#"
count: 1
path: src/Core/Reflection/Collection/HomogeneousReflectionMemberCollection.php
-
message: "#^Parameter \\#1 \\$items of class Phpactor\\\\WorseReflection\\\\Core\\\\Reflection\\\\Collection\\\\ReflectionConstantCollection constructor expects array\\<Phpactor\\\\WorseReflection\\\\Core\\\\Reflection\\\\ReflectionConstant\\>, array\\<Phpactor\\\\WorseReflection\\\\Core\\\\Reflection\\\\Collection\\\\ReflectionConstant&T of Phpactor\\\\WorseReflection\\\\Core\\\\Reflection\\\\ReflectionMember\\> given\\.$#"
count: 1
path: src/Core/Reflection/Collection/HomogeneousReflectionMemberCollection.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Reflection\\\\ReflectionSourceCode\\:\\:findClass\\(\\) has no return type specified\\.$#"
count: 1
path: src/Core/Reflection/ReflectionSourceCode.php
-
message: "#^Property Phpactor\\\\WorseReflection\\\\Core\\\\Reflector\\\\ClassReflector\\\\MemonizedReflector\\:\\:\\$innerReflector is never read, only written\\.$#"
count: 1
path: src/Core/Reflector/ClassReflector/MemonizedReflector.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Reflector\\\\CompositeReflector\\:\\:reflectMethodCall\\(\\) has parameter \\$offset with no type specified\\.$#"
count: 1
path: src/Core/Reflector/CompositeReflector.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Reflector\\\\CompositeReflector\\:\\:reflectNode\\(\\) has parameter \\$offset with no type specified\\.$#"
count: 1
path: src/Core/Reflector/CompositeReflector.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Reflector\\\\CompositeReflector\\:\\:reflectOffset\\(\\) has parameter \\$offset with no type specified\\.$#"
count: 1
path: src/Core/Reflector/CompositeReflector.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Reflector\\\\CoreReflector\\:\\:reflectNode\\(\\) has parameter \\$offset with no type specified\\.$#"
count: 1
path: src/Core/Reflector/CoreReflector.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Reflector\\\\CoreReflector\\:\\:reflectNode\\(\\) has parameter \\$sourceCode with no type specified\\.$#"
count: 1
path: src/Core/Reflector/CoreReflector.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Reflector\\\\SourceCode\\\\ContextualSourceCodeReflector\\:\\:reflectMethodCall\\(\\) has parameter \\$offset with no type specified\\.$#"
count: 1
path: src/Core/Reflector/SourceCode/ContextualSourceCodeReflector.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Reflector\\\\SourceCode\\\\ContextualSourceCodeReflector\\:\\:reflectNode\\(\\) has parameter \\$offset with no type specified\\.$#"
count: 1
path: src/Core/Reflector/SourceCode/ContextualSourceCodeReflector.php
-
message: "#^Method Phpactor\\\\WorseReflection\\\\Core\\\\Reflector\\\\SourceCode\\\\ContextualSourceCodeReflector\\:\\:reflectOffset\\(\\) has parameter \\$offset with no type specified\\.$#"
count: 1
path: src/Core/Reflector/SourceCode/ContextualSourceCodeReflector.php
-
message: "#^Property Phpactor\\\\WorseReflection\\\\Core\\\\Virtual\\\\VirtualReflectionMethod\\:\\:\\$type is unused\\.$#"
count: 1
path: src/Core/Virtual/VirtualReflectionMethod.php
-
message: "#^Cannot use array destructuring on Phpactor\\\\WorseReflection\\\\Core\\\\SourceCodeLocator\\.$#"
count: 2
path: src/ReflectorBuilder.php
-
message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(Phpactor\\\\WorseReflection\\\\Core\\\\SourceCodeLocator\\)\\: mixed\\)\\|null, Closure\\(array\\)\\: mixed given\\.$#"
count: 1
path: src/ReflectorBuilder.php
-
message: "#^Property Phpactor\\\\WorseReflection\\\\ReflectorBuilder\\:\\:\\$locators \\(array\\<Phpactor\\\\WorseReflection\\\\Core\\\\SourceCodeLocator\\>\\) does not accept array\\<array\\<int, int\\|Phpactor\\\\WorseReflection\\\\Core\\\\SourceCodeLocator\\>\\|Phpactor\\\\WorseReflection\\\\Core\\\\SourceCodeLocator\\>\\.$#"
count: 1
path: src/ReflectorBuilder.php