-
-
Notifications
You must be signed in to change notification settings - Fork 226
/
Copy pathphpstan-baseline.neon
397 lines (332 loc) · 17.6 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
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
parameters:
ignoreErrors:
-
message: '#^Strict comparison using \=\=\= between array\<string\> and false will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/Event/Listener/MongoDBReferenceListener.php
-
message: '#^Strict comparison using \=\=\= between array\<string\> and false will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/Event/Listener/ORMReferenceListener.php
-
message: '#^Call to method transactional\(\) on an unknown class Doctrine\\ODM\\PHPCR\\DocumentManagerInterface\.$#'
identifier: class.notFound
count: 1
path: src/Executor/PHPCRExecutor.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Executor\\PHPCRExecutor\:\:getObjectManager\(\) has invalid return type Doctrine\\ODM\\PHPCR\\DocumentManagerInterface\.$#'
identifier: class.notFound
count: 1
path: src/Executor/PHPCRExecutor.php
-
message: '#^Parameter \#1 \$dm of method Doctrine\\Common\\DataFixtures\\Purger\\PHPCRPurger\:\:setDocumentManager\(\) expects Doctrine\\ODM\\PHPCR\\DocumentManager, Doctrine\\ODM\\PHPCR\\DocumentManagerInterface given\.$#'
identifier: argument.type
count: 1
path: src/Executor/PHPCRExecutor.php
-
message: '#^Parameter \#1 \$manager of method Doctrine\\Common\\DataFixtures\\Executor\\AbstractExecutor\:\:__construct\(\) expects Doctrine\\Persistence\\ObjectManager, Doctrine\\ODM\\PHPCR\\DocumentManagerInterface given\.$#'
identifier: argument.type
count: 1
path: src/Executor/PHPCRExecutor.php
-
message: '#^Parameter \$dm of method Doctrine\\Common\\DataFixtures\\Executor\\PHPCRExecutor\:\:__construct\(\) has invalid type Doctrine\\ODM\\PHPCR\\DocumentManagerInterface\.$#'
identifier: class.notFound
count: 2
path: src/Executor/PHPCRExecutor.php
-
message: '#^Property Doctrine\\Common\\DataFixtures\\Executor\\PHPCRExecutor\:\:\$dm has unknown class Doctrine\\ODM\\PHPCR\\DocumentManagerInterface as its type\.$#'
identifier: class.notFound
count: 2
path: src/Executor/PHPCRExecutor.php
-
message: '#^Call to an undefined method Doctrine\\Common\\DataFixtures\\FixtureInterface\:\:getDependencies\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Loader.php
-
message: '#^Call to function is_array\(\) with array\<class\-string\<Doctrine\\Common\\DataFixtures\\FixtureInterface\>\> will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/Loader.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Loader\:\:createFixture\(\) should return Doctrine\\Common\\DataFixtures\\FixtureInterface but returns object\.$#'
identifier: return.type
count: 1
path: src/Loader.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Loader\:\:getUnsequencedClasses\(\) should return array\<class\-string\<Doctrine\\Common\\DataFixtures\\FixtureInterface\>\> but returns list\<class\-string\<Doctrine\\Common\\DataFixtures\\DependentFixtureInterface\>\|class\-string\<Doctrine\\Common\\DataFixtures\\FixtureInterface\>\>\.$#'
identifier: return.type
count: 1
path: src/Loader.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Loader\:\:loadFromDirectory\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Loader.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Loader\:\:loadFromFile\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Loader.php
-
message: '#^Parameter \#1 \$sequences of method Doctrine\\Common\\DataFixtures\\Loader\:\:getUnsequencedClasses\(\) expects array\<class\-string\<Doctrine\\Common\\DataFixtures\\DependentFixtureInterface\>, int\>, array\<class\-string\<Doctrine\\Common\\DataFixtures\\DependentFixtureInterface\>\|class\-string\<Doctrine\\Common\\DataFixtures\\FixtureInterface\>, int\> given\.$#'
identifier: argument.type
count: 2
path: src/Loader.php
-
message: '#^Call to an undefined method Doctrine\\Persistence\\ObjectManager\:\:getReference\(\)\.$#'
identifier: method.notFound
count: 1
path: src/ProxyReferenceRepository.php
-
message: '#^Expression on left side of \?\? is not nullable\.$#'
identifier: nullCoalesce.expr
count: 1
path: src/Purger/ORMPurger.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Purger\\ORMPurger\:\:getAssociationTables\(\) has parameter \$classes with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Purger/ORMPurger.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Purger\\ORMPurger\:\:getCommitOrder\(\) has parameter \$classes with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Purger/ORMPurger.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Purger\\ORMPurger\:\:getCommitOrder\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Purger/ORMPurger.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Purger\\ORMPurger\:\:getJoinTableName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Purger/ORMPurger.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Purger\\ORMPurger\:\:getTableName\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Purger/ORMPurger.php
-
message: '#^Parameter \#1 \$assoc of method Doctrine\\Common\\DataFixtures\\Purger\\ORMPurger\:\:getJoinTableName\(\) expects array\<mixed\>\|Doctrine\\ORM\\Mapping\\ManyToManyOwningSideMapping, Doctrine\\ORM\\Mapping\\ManyToManyInverseSideMapping\|Doctrine\\ORM\\Mapping\\ManyToManyOwningSideMapping\|Doctrine\\ORM\\Mapping\\ManyToOneAssociationMapping\|Doctrine\\ORM\\Mapping\\OneToManyAssociationMapping\|Doctrine\\ORM\\Mapping\\OneToOneInverseSideMapping\|Doctrine\\ORM\\Mapping\\OneToOneOwningSideMapping given\.$#'
identifier: argument.type
count: 1
path: src/Purger/ORMPurger.php
-
message: '#^Parameter \#1 \$association of method Doctrine\\ORM\\Mapping\\QuoteStrategy\:\:getJoinTableName\(\) expects Doctrine\\ORM\\Mapping\\ManyToManyOwningSideMapping, array\<mixed\>\|Doctrine\\ORM\\Mapping\\ManyToManyOwningSideMapping given\.$#'
identifier: argument.type
count: 1
path: src/Purger/ORMPurger.php
-
message: '#^Call to method getPhpcrSession\(\) on an unknown class Doctrine\\ODM\\PHPCR\\DocumentManagerInterface\.$#'
identifier: class.notFound
count: 1
path: src/Purger/PHPCRPurger.php
-
message: '#^Call to static method purgeWorkspace\(\) on an unknown class PHPCR\\Util\\NodeHelper\.$#'
identifier: class.notFound
count: 1
path: src/Purger/PHPCRPurger.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Purger\\PHPCRPurger\:\:getObjectManager\(\) has invalid return type Doctrine\\ODM\\PHPCR\\DocumentManagerInterface\.$#'
identifier: class.notFound
count: 1
path: src/Purger/PHPCRPurger.php
-
message: '#^Parameter \$dm of method Doctrine\\Common\\DataFixtures\\Purger\\PHPCRPurger\:\:__construct\(\) has invalid type Doctrine\\ODM\\PHPCR\\DocumentManagerInterface\.$#'
identifier: class.notFound
count: 1
path: src/Purger/PHPCRPurger.php
-
message: '#^Parameter \$dm of method Doctrine\\Common\\DataFixtures\\Purger\\PHPCRPurger\:\:setDocumentManager\(\) has invalid type Doctrine\\ODM\\PHPCR\\DocumentManager\.$#'
identifier: class.notFound
count: 1
path: src/Purger/PHPCRPurger.php
-
message: '#^Property Doctrine\\Common\\DataFixtures\\Purger\\PHPCRPurger\:\:\$dm \(Doctrine\\ODM\\PHPCR\\DocumentManagerInterface\|null\) does not accept Doctrine\\ODM\\PHPCR\\DocumentManager\.$#'
identifier: assign.propertyType
count: 1
path: src/Purger/PHPCRPurger.php
-
message: '#^Property Doctrine\\Common\\DataFixtures\\Purger\\PHPCRPurger\:\:\$dm has unknown class Doctrine\\ODM\\PHPCR\\DocumentManagerInterface as its type\.$#'
identifier: class.notFound
count: 1
path: src/Purger/PHPCRPurger.php
-
message: '#^Parameter \$dm of method Doctrine\\Common\\DataFixtures\\Purger\\PHPCRPurgerInterface\:\:setDocumentManager\(\) has invalid type Doctrine\\Common\\DataFixtures\\Purger\\DocumentManager\.$#'
identifier: class.notFound
count: 1
path: src/Purger/PHPCRPurgerInterface.php
-
message: '#^Access to an undefined property Doctrine\\Persistence\\Mapping\\ClassMetadata\<T of object\>\:\:\$name\.$#'
identifier: property.notFound
count: 1
path: src/ReferenceRepository.php
-
message: '#^Call to an undefined method Doctrine\\Persistence\\ObjectManager\:\:getReference\(\)\.$#'
identifier: method.notFound
count: 1
path: src/ReferenceRepository.php
-
message: '#^Call to an undefined method Doctrine\\Persistence\\ObjectManager\:\:getUnitOfWork\(\)\.$#'
identifier: method.notFound
count: 2
path: src/ReferenceRepository.php
-
message: '#^Call to an undefined method object\:\:getDocumentId\(\)\.$#'
identifier: method.notFound
count: 1
path: src/ReferenceRepository.php
-
message: '#^Call to an undefined method object\:\:getDocumentIdentifier\(\)\.$#'
identifier: method.notFound
count: 1
path: src/ReferenceRepository.php
-
message: '#^Class Doctrine\\ODM\\PHPCR\\DocumentManager not found\.$#'
identifier: class.notFound
count: 2
path: src/ReferenceRepository.php
-
message: '#^Parameter \#1 \$className of method Doctrine\\Persistence\\ObjectManager\:\:getClassMetadata\(\) expects class\-string\<object\>, string given\.$#'
identifier: argument.type
count: 1
path: src/ReferenceRepository.php
-
message: '#^Property Doctrine\\Common\\DataFixtures\\ReferenceRepository\:\:\$identitiesByClass \(array\<class\-string, array\<string, mixed\>\>\) does not accept array\<string, array\<string, mixed\>\>\.$#'
identifier: assign.propertyType
count: 1
path: src/ReferenceRepository.php
-
message: '#^Property Doctrine\\Common\\DataFixtures\\ReferenceRepository\:\:\$referencesByClass \(array\<class\-string, array\<string, object\>\>\) does not accept array\<string, array\<string, object\>\>\.$#'
identifier: assign.propertyType
count: 1
path: src/ReferenceRepository.php
-
message: '#^Unable to resolve the template type T in call to method Doctrine\\Persistence\\ObjectManager\:\:getClassMetadata\(\)$#'
identifier: argument.templateType
count: 1
path: src/ReferenceRepository.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Sorter\\TopologicalSorter\:\:addNode\(\) has parameter \$node with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Sorter/TopologicalSorter.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Sorter\\TopologicalSorter\:\:sort\(\) return type with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Sorter/TopologicalSorter.php
-
message: '#^Property Doctrine\\Common\\DataFixtures\\Sorter\\TopologicalSorter\:\:\$sortedNodeList with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Sorter/TopologicalSorter.php
-
message: '#^Method Doctrine\\Common\\DataFixtures\\Sorter\\Vertex\:\:__construct\(\) has parameter \$value with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Sorter/Vertex.php
-
message: '#^Property Doctrine\\Common\\DataFixtures\\Sorter\\Vertex\:\:\$value with generic class Doctrine\\ORM\\Mapping\\ClassMetadata does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Sorter/Vertex.php
-
message: '#^Method Doctrine\\Tests\\Common\\DataFixtures\\FixtureWithUnexistentDependency\:\:getDependencies\(\) should return array\<class\-string\<Doctrine\\Common\\DataFixtures\\FixtureInterface\>\> but returns array\<int, string\>\.$#'
identifier: return.type
count: 1
path: tests/Common/DataFixtures/DependentFixtureTest.php
-
message: '#^Call to method expects\(\) on an unknown class Doctrine\\ODM\\PHPCR\\DocumentManager\.$#'
identifier: class.notFound
count: 5
path: tests/Common/DataFixtures/Executor/PHPCRExecutorTest.php
-
message: '#^Method Doctrine\\Tests\\Common\\DataFixtures\\Executor\\PHPCRExecutorTest\:\:getDocumentManager\(\) has invalid return type Doctrine\\ODM\\PHPCR\\DocumentManager\.$#'
identifier: class.notFound
count: 1
path: tests/Common/DataFixtures/Executor/PHPCRExecutorTest.php
-
message: '#^Parameter \#1 \$dm of class Doctrine\\Common\\DataFixtures\\Executor\\PHPCRExecutor constructor expects Doctrine\\ODM\\PHPCR\\DocumentManagerInterface, Doctrine\\ODM\\PHPCR\\DocumentManager&PHPUnit\\Framework\\MockObject\\MockObject given\.$#'
identifier: argument.type
count: 5
path: tests/Common/DataFixtures/Executor/PHPCRExecutorTest.php
-
message: '#^Parameter \#2 \$purger of class Doctrine\\Common\\DataFixtures\\Executor\\PHPCRExecutor constructor expects Doctrine\\Common\\DataFixtures\\Purger\\PHPCRPurger\|null, Doctrine\\Common\\DataFixtures\\Purger\\PHPCRPurgerInterface&PHPUnit\\Framework\\MockObject\\MockObject given\.$#'
identifier: argument.type
count: 3
path: tests/Common/DataFixtures/Executor/PHPCRExecutorTest.php
-
message: '#^Call to an undefined method Doctrine\\ODM\\MongoDB\\DocumentManager\:\:getConnection\(\)\.$#'
identifier: method.notFound
count: 1
path: tests/Common/DataFixtures/Purger/MongoDBPurgerTest.php
-
message: '#^Call to function method_exists\(\) with Doctrine\\ODM\\MongoDB\\DocumentManager and ''getClient'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: tests/Common/DataFixtures/Purger/MongoDBPurgerTest.php
-
message: '#^Parameter \#1 \$name of class Doctrine\\ORM\\Mapping\\ClassMetadata constructor expects class\-string\<1\>, string given\.$#'
identifier: argument.type
count: 6
path: tests/Common/DataFixtures/Sorter/TopologicalSorterTest.php
-
message: '#^Parameter \#1 \$name of class Doctrine\\ORM\\Mapping\\ClassMetadata constructor expects class\-string\<2\>, string given\.$#'
identifier: argument.type
count: 5
path: tests/Common/DataFixtures/Sorter/TopologicalSorterTest.php
-
message: '#^Parameter \#1 \$name of class Doctrine\\ORM\\Mapping\\ClassMetadata constructor expects class\-string\<3\>, string given\.$#'
identifier: argument.type
count: 5
path: tests/Common/DataFixtures/Sorter/TopologicalSorterTest.php
-
message: '#^Parameter \#1 \$name of class Doctrine\\ORM\\Mapping\\ClassMetadata constructor expects class\-string\<4\>, string given\.$#'
identifier: argument.type
count: 3
path: tests/Common/DataFixtures/Sorter/TopologicalSorterTest.php
-
message: '#^Parameter \#1 \$name of class Doctrine\\ORM\\Mapping\\ClassMetadata constructor expects class\-string\<5\>, string given\.$#'
identifier: argument.type
count: 3
path: tests/Common/DataFixtures/Sorter/TopologicalSorterTest.php
-
message: '#^Parameter \#1 \$name of class Doctrine\\ORM\\Mapping\\ClassMetadata constructor expects class\-string\<\\Sample\\Entity\>, string given\.$#'
identifier: argument.type
count: 1
path: tests/Common/DataFixtures/Sorter/VertexTest.php
-
message: '#^Property Doctrine\\Tests\\Common\\DataFixtures\\TestDocument\\Role\:\:\$id \(string\|null\) is never assigned string so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: tests/Common/DataFixtures/TestDocument/Role.php
-
message: '#^Method Doctrine\\Tests\\Common\\DataFixtures\\TestEntity\\Quoted\:\:getSelects\(\) return type with generic interface Doctrine\\Common\\Collections\\Collection does not specify its types\: TKey, T$#'
identifier: missingType.generics
count: 1
path: tests/Common/DataFixtures/TestEntity/Quoted.php
-
message: '#^Method Doctrine\\Tests\\Common\\DataFixtures\\TestEntity\\Quoted\:\:setSelects\(\) has parameter \$selects with generic interface Doctrine\\Common\\Collections\\Collection but does not specify its types\: TKey, T$#'
identifier: missingType.generics
count: 1
path: tests/Common/DataFixtures/TestEntity/Quoted.php
-
message: '#^Property Doctrine\\Tests\\Common\\DataFixtures\\TestEntity\\Quoted\:\:\$selects with generic interface Doctrine\\Common\\Collections\\Collection does not specify its types\: TKey, T$#'
identifier: missingType.generics
count: 1
path: tests/Common/DataFixtures/TestEntity/Quoted.php
-
message: '#^Property Doctrine\\Tests\\Common\\DataFixtures\\TestEntity\\Role\:\:\$id \(int\|null\) is never assigned int so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: tests/Common/DataFixtures/TestEntity/Role.php
-
message: '#^Method Doctrine\\Tests\\Common\\DataFixtures\\TestValueObjects\\Uuid\:\:__unserialize\(\) has parameter \$data with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: tests/Common/DataFixtures/TestValueObjects/Uuid.php