-
Notifications
You must be signed in to change notification settings - Fork 97
/
extension.neon
457 lines (432 loc) · 15.4 KB
/
extension.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
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
parameters:
doctrine:
reportDynamicQueryBuilders: false
reportUnknownTypes: false
allowNullablePropertyForRequiredField: false
repositoryClass: null
ormRepositoryClass: null
odmRepositoryClass: null
queryBuilderClass: null
allCollectionsSelectable: true
objectManagerLoader: null
literalString: false
stubFiles:
- stubs/Criteria.stub
- stubs/DBAL/Cache/CacheException.stub
- stubs/DBAL/Cache/QueryCacheProfile.stub
- stubs/DBAL/Exception/UniqueConstraintViolationException.stub
- stubs/DBAL/Types/Type.stub
- stubs/DBAL/Exception.stub
- stubs/DBAL/Result.stub
- stubs/DocumentManager.stub
- stubs/DocumentRepository.stub
- stubs/EntityManager.stub
- stubs/EntityManagerDecorator.stub
- stubs/EntityManagerInterface.stub
- stubs/EntityRepository.stub
- stubs/MongoClassMetadataInfo.stub
- stubs/Persistence/ManagerRegistry.stub
- stubs/Persistence/ObjectManager.stub
- stubs/Persistence/ObjectManagerDecorator.stub
- stubs/Persistence/ObjectRepository.stub
- stubs/RepositoryFactory.stub
- stubs/Collections/ArrayCollection.stub
- stubs/Collections/Selectable.stub
- stubs/ORM/AbstractQuery.stub
- stubs/ORM/Exception/ORMException.stub
- stubs/ORM/Id/AbstractIdGenerator.stub
- stubs/ORM/Mapping/ClassMetadata.stub
- stubs/ORM/Mapping/ClassMetadataInfo.stub
- stubs/ORM/Mapping/ManyToManyInverseSideMapping.stub
- stubs/ORM/Mapping/ManyToManyOwningSideMapping.stub
- stubs/ORM/Mapping/ManyToOneAssociationMapping.stub
- stubs/ORM/Mapping/OneToManyAssociationMapping.stub
- stubs/ORM/Mapping/OneToOneInverseSideMapping.stub
- stubs/ORM/Mapping/OneToOneOwningSideMapping.stub
- stubs/ORM/NonUniqueResultException.stub
- stubs/ORM/NoResultException.stub
- stubs/ORM/ORMException.stub
- stubs/ORM/UnexpectedResultException.stub
- stubs/ORM/Query/Expr.stub
- stubs/ORM/Query.stub
- stubs/ORM/QueryBuilder.stub
- stubs/ORM/Query/Expr/Comparison.stub
- stubs/ORM/Query/Expr/Composite.stub
- stubs/ORM/Query/Expr/Func.stub
- stubs/ORM/Query/Expr/Join.stub
- stubs/ORM/Tools/Pagination/Paginator.stub
- stubs/Persistence/Mapping/ClassMetadata.stub
- stubs/ServiceDocumentRepository.stub
parametersSchema:
doctrine: structure([
repositoryClass: schema(string(), nullable())
ormRepositoryClass: schema(string(), nullable())
odmRepositoryClass: schema(string(), nullable())
queryBuilderClass: schema(string(), nullable())
allCollectionsSelectable: bool()
objectManagerLoader: schema(string(), nullable())
reportDynamicQueryBuilders: bool()
reportUnknownTypes: bool()
allowNullablePropertyForRequiredField: bool()
literalString: bool()
])
conditionalTags:
PHPStan\Reflection\Doctrine\DoctrineSelectableClassReflectionExtension:
phpstan.broker.methodsClassReflectionExtension: %doctrine.allCollectionsSelectable%
services:
-
class: PHPStan\Type\Doctrine\DescriptorRegistryFactory
doctrineTypeDescriptorRegistry:
class: PHPStan\Type\Doctrine\DefaultDescriptorRegistry
factory: @PHPStan\Type\Doctrine\DescriptorRegistryFactory::createRegistry
-
class: PHPStan\Doctrine\Driver\DriverDetector
-
class: PHPStan\Doctrine\DoctrineDiagnoseExtension
tags:
- phpstan.diagnoseExtension
-
class: PHPStan\Type\Doctrine\HydrationModeReturnTypeResolver
-
class: PHPStan\Reflection\Doctrine\DoctrineSelectableClassReflectionExtension
-
class: PHPStan\Reflection\Doctrine\EntityRepositoryClassReflectionExtension
tags:
- phpstan.broker.methodsClassReflectionExtension
-
class: PHPStan\Type\Doctrine\QueryBuilder\CreateQueryBuilderDynamicReturnTypeExtension
arguments:
queryBuilderClass: %doctrine.queryBuilderClass%
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Type\Doctrine\QueryBuilder\EntityRepositoryCreateQueryBuilderDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Type\Doctrine\DoctrineSelectableDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Type\Doctrine\ObjectMetadataResolver
arguments:
objectManagerLoader: %doctrine.objectManagerLoader%
tmpDir: %tmpDir%
-
class: PHPStan\Type\Doctrine\QueryBuilder\QueryBuilderGetDqlDynamicReturnTypeExtension
arguments:
queryBuilderClass: %doctrine.queryBuilderClass%
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Type\Doctrine\QueryBuilder\QueryBuilderGetQueryDynamicReturnTypeExtension
arguments:
queryBuilderClass: %doctrine.queryBuilderClass%
argumentsProcessor: @doctrineQueryBuilderArgumentsProcessor
descriptorRegistry: @doctrineTypeDescriptorRegistry
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Type\Doctrine\QueryBuilder\QueryBuilderMethodDynamicReturnTypeExtension
arguments:
queryBuilderClass: %doctrine.queryBuilderClass%
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Type\Doctrine\QueryBuilder\QueryBuilderTypeSpecifyingExtension
arguments:
queryBuilderClass: %doctrine.queryBuilderClass%
tags:
- phpstan.typeSpecifier.methodTypeSpecifyingExtension
-
class: PHPStan\Type\Doctrine\Query\QueryGetDqlDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Type\Doctrine\CreateQueryDynamicReturnTypeExtension
arguments:
objectMetadataResolver: @PHPStan\Type\Doctrine\ObjectMetadataResolver
descriptorRegistry: @doctrineTypeDescriptorRegistry
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Type\Doctrine\Query\QueryResultDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Type\Doctrine\QueryBuilder\Expr\ExpressionBuilderDynamicReturnTypeExtension
arguments:
argumentsProcessor: @doctrineQueryBuilderArgumentsProcessor
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Type\Doctrine\QueryBuilder\Expr\BaseExpressionDynamicReturnTypeExtension
arguments:
argumentsProcessor: @doctrineQueryBuilderArgumentsProcessor
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Rules\Doctrine\ORM\PropertiesExtension
tags:
- phpstan.properties.readWriteExtension
-
class: PHPStan\Type\Doctrine\QueryBuilder\OtherMethodQueryBuilderParser
arguments:
parser: @defaultAnalysisParser
-
class: PHPStan\Type\Doctrine\QueryBuilder\ReturnQueryBuilderExpressionTypeResolverExtension
tags:
- phpstan.broker.expressionTypeResolverExtension
-
class: PHPStan\Stubs\Doctrine\StubFilesExtensionLoader
tags:
- phpstan.stubFilesExtension
doctrineQueryBuilderArgumentsProcessor:
class: PHPStan\Type\Doctrine\ArgumentsProcessor
autowired: false
managerRegistryGetRepository:
class: PHPStan\Type\Doctrine\GetRepositoryDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
arguments:
managerClass: Doctrine\Persistence\ManagerRegistry
repositoryClass: %doctrine.repositoryClass%
ormRepositoryClass: %doctrine.ormRepositoryClass%
odmRepositoryClass: %doctrine.odmRepositoryClass%
objectManagerGetRepository:
class: PHPStan\Type\Doctrine\GetRepositoryDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
arguments:
managerClass: Doctrine\Persistence\ObjectManager
repositoryClass: %doctrine.repositoryClass%
ormRepositoryClass: %doctrine.ormRepositoryClass%
odmRepositoryClass: %doctrine.odmRepositoryClass%
persistenceManagerRegistryGetRepository:
class: PHPStan\Type\Doctrine\GetRepositoryDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
arguments:
managerClass: Doctrine\Persistence\ManagerRegistry
repositoryClass: %doctrine.repositoryClass%
ormRepositoryClass: %doctrine.ormRepositoryClass%
odmRepositoryClass: %doctrine.odmRepositoryClass%
persistenceObjectManagerGetRepository:
class: PHPStan\Type\Doctrine\GetRepositoryDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
arguments:
managerClass: Doctrine\Persistence\ObjectManager
repositoryClass: %doctrine.repositoryClass%
ormRepositoryClass: %doctrine.ormRepositoryClass%
odmRepositoryClass: %doctrine.odmRepositoryClass%
## NewExprDynamicReturnTypeExtensions
-
class: PHPStan\Type\Doctrine\QueryBuilder\Expr\NewExprDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
arguments:
class: Doctrine\ORM\Query\Expr\Base
argumentsProcessor: @doctrineQueryBuilderArgumentsProcessor
-
class: PHPStan\Type\Doctrine\QueryBuilder\Expr\NewExprDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
arguments:
class: Doctrine\ORM\Query\Expr\Comparison
argumentsProcessor: @doctrineQueryBuilderArgumentsProcessor
-
class: PHPStan\Type\Doctrine\QueryBuilder\Expr\NewExprDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
arguments:
class: Doctrine\ORM\Query\Expr\From
argumentsProcessor: @doctrineQueryBuilderArgumentsProcessor
-
class: PHPStan\Type\Doctrine\QueryBuilder\Expr\NewExprDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
arguments:
class: Doctrine\ORM\Query\Expr\Func
argumentsProcessor: @doctrineQueryBuilderArgumentsProcessor
-
class: PHPStan\Type\Doctrine\QueryBuilder\Expr\NewExprDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
arguments:
class: Doctrine\ORM\Query\Expr\Join
argumentsProcessor: @doctrineQueryBuilderArgumentsProcessor
-
class: PHPStan\Type\Doctrine\QueryBuilder\Expr\NewExprDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
arguments:
class: Doctrine\ORM\Query\Expr\Math
argumentsProcessor: @doctrineQueryBuilderArgumentsProcessor
-
class: PHPStan\Type\Doctrine\QueryBuilder\Expr\NewExprDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
arguments:
class: Doctrine\ORM\Query\Expr\OrderBy
argumentsProcessor: @doctrineQueryBuilderArgumentsProcessor
-
class: PHPStan\Type\Doctrine\QueryBuilder\Expr\NewExprDynamicReturnTypeExtension
tags:
- phpstan.broker.dynamicStaticMethodReturnTypeExtension
arguments:
class: Doctrine\ORM\Query\Expr
argumentsProcessor: @doctrineQueryBuilderArgumentsProcessor
-
class: PHPStan\Type\Doctrine\DBAL\QueryBuilder\QueryBuilderExecuteMethodExtension
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Type\Doctrine\DBAL\RowCountMethodDynamicReturnTypeExtension
arguments:
class: Doctrine\DBAL\Result
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
-
class: PHPStan\Type\Doctrine\DBAL\RowCountMethodDynamicReturnTypeExtension
arguments:
class: Doctrine\DBAL\Driver\Result
tags:
- phpstan.broker.dynamicMethodReturnTypeExtension
# Type descriptors
-
class: PHPStan\Type\Doctrine\Descriptors\ArrayType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\AsciiStringType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\BigIntType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\BinaryType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\BlobType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\BooleanType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\DateImmutableType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\DateIntervalType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\DateTimeImmutableType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\DateTimeType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\DateTimeTzImmutableType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\DateTimeTzType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\DateType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\DecimalType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\FloatType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\GuidType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\IntegerType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\JsonArrayType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\JsonType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\ObjectType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\SimpleArrayType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\SmallIntType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\StringType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\TextType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\TimeImmutableType
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\TimeType
tags: [phpstan.doctrine.typeDescriptor]
# 3rd party Type descriptors
-
factory: PHPStan\Type\Doctrine\Descriptors\ReflectionDescriptor('Carbon\Doctrine\CarbonImmutableType')
tags: [phpstan.doctrine.typeDescriptor]
-
factory: PHPStan\Type\Doctrine\Descriptors\ReflectionDescriptor('Carbon\Doctrine\CarbonType')
tags: [phpstan.doctrine.typeDescriptor]
-
class: PHPStan\Type\Doctrine\Descriptors\Ramsey\UuidTypeDescriptor
tags: [phpstan.doctrine.typeDescriptor]
arguments:
uuidTypeName: Ramsey\Uuid\Doctrine\UuidType
-
class: PHPStan\Type\Doctrine\Descriptors\Ramsey\UuidTypeDescriptor
tags: [phpstan.doctrine.typeDescriptor]
arguments:
uuidTypeName: Ramsey\Uuid\Doctrine\UuidBinaryType
-
class: PHPStan\Type\Doctrine\Descriptors\Ramsey\UuidTypeDescriptor
tags: [phpstan.doctrine.typeDescriptor]
arguments:
uuidTypeName: Ramsey\Uuid\Doctrine\UuidBinaryOrderedTimeType
# Doctrine Collection
-
class: PHPStan\Type\Doctrine\Collection\IsEmptyTypeSpecifyingExtension
arguments:
collectionClass: Doctrine\Common\Collections\Collection
tags:
- phpstan.typeSpecifier.methodTypeSpecifyingExtension
-
class: PHPStan\Type\Doctrine\Collection\IsEmptyTypeSpecifyingExtension
arguments:
collectionClass: Doctrine\Common\Collections\ReadableCollection
tags:
- phpstan.typeSpecifier.methodTypeSpecifyingExtension
-
class: PHPStan\Rules\Gedmo\PropertiesExtension
tags:
- phpstan.properties.readWriteExtension
-
class: PHPStan\PhpDoc\Doctrine\QueryTypeNodeResolverExtension
tags:
- phpstan.phpDoc.typeNodeResolverExtension
-
class: PHPStan\PhpDoc\Doctrine\DoctrineLiteralStringTypeNodeResolverExtension
arguments:
enabled: %doctrine.literalString%
tags:
- phpstan.phpDoc.typeNodeResolverExtension
-
class: PHPStan\Type\Doctrine\EntityManagerInterfaceThrowTypeExtension
tags:
- phpstan.dynamicMethodThrowTypeExtension
# Forbidden class names extension
-
class: PHPStan\Classes\DoctrineProxyForbiddenClassNamesExtension
tags:
- phpstan.forbiddenClassNamesExtension