@@ -21,6 +21,12 @@ parameters:
21
21
checkDeprecatedHooksInApiFiles : false
22
22
checkCoreDeprecatedHooksInApiFiles : false
23
23
checkContribDeprecatedHooksInApiFiles : false
24
+ extensions :
25
+ entityFieldsViaMagicReflection : true
26
+ entityFieldMethodsViaMagicReflection : true
27
+ entityQuery : true
28
+ entityRepository : true
29
+ stubFiles : true
24
30
rules :
25
31
testClassSuffixNameRule : false
26
32
dependencySerializationTraitPropertyRule : false
@@ -248,6 +254,13 @@ parametersSchema:
248
254
checkCoreDeprecatedHooksInApiFiles : boolean ()
249
255
checkContribDeprecatedHooksInApiFiles : boolean ()
250
256
])
257
+ extensions : structure ([
258
+ entityFieldsViaMagicReflection : boolean ()
259
+ entityFieldMethodsViaMagicReflection : boolean ()
260
+ entityQuery : boolean ()
261
+ entityRepository : boolean ()
262
+ stubFiles : boolean ()
263
+ ])
251
264
rules : structure ([
252
265
testClassSuffixNameRule : boolean ()
253
266
dependencySerializationTraitPropertyRule : boolean ()
@@ -282,10 +295,8 @@ services:
282
295
tags : [phpstan.broker.dynamicMethodReturnTypeExtension ]
283
296
-
284
297
class : mglaman\PHPStanDrupal\Type\EntityRepositoryReturnTypeExtension
285
- tags : [phpstan.broker.dynamicMethodReturnTypeExtension ]
286
298
-
287
299
class : mglaman\PHPStanDrupal\Type\EntityStorage\GetQueryReturnTypeExtension
288
- tags : [phpstan.broker.dynamicMethodReturnTypeExtension ]
289
300
-
290
301
class : mglaman\PHPStanDrupal\Type\ContainerDynamicReturnTypeExtension
291
302
tags : [phpstan.broker.dynamicMethodReturnTypeExtension ]
@@ -294,10 +305,8 @@ services:
294
305
tags : [phpstan.broker.dynamicMethodReturnTypeExtension ]
295
306
-
296
307
class : mglaman\PHPStanDrupal\Type\EntityQuery\EntityQueryDynamicReturnTypeExtension
297
- tags : [phpstan.broker.dynamicMethodReturnTypeExtension ]
298
308
-
299
309
class : mglaman\PHPStanDrupal\Type\EntityQuery\EntityQueryAccessCheckDynamicReturnTypeExtension
300
- tags : [phpstan.broker.dynamicMethodReturnTypeExtension ]
301
310
-
302
311
class : mglaman\PHPStanDrupal\Type\EntityAccessControlHandlerReturnTypeExtension
303
312
tags : [phpstan.broker.dynamicMethodReturnTypeExtension ]
@@ -312,17 +321,12 @@ services:
312
321
tags : [phpstan.broker.dynamicStaticMethodReturnTypeExtension ]
313
322
-
314
323
class : mglaman\PHPStanDrupal\Reflection\EntityFieldsViaMagicReflectionExtension
315
- tags : [phpstan.broker.propertiesClassReflectionExtension ]
316
324
-
317
325
class : mglaman\PHPStanDrupal\Reflection\EntityFieldMethodsViaMagicReflectionExtension
318
- tags : [phpstan.broker.methodsClassReflectionExtension ]
319
326
-
320
327
class : mglaman\PHPStanDrupal\Drupal\DrupalStubFilesExtension
321
- tags : [phpstan.stubFilesExtension ]
322
328
-
323
329
class : mglaman\PHPStanDrupal\Type\EntityQuery\AccessCheckTypeSpecifyingExtension
324
- tags :
325
- - phpstan.typeSpecifier.methodTypeSpecifyingExtension
326
330
-
327
331
class : mglaman\PHPStanDrupal\DeprecatedScope\GroupLegacyScope
328
332
tags :
@@ -338,4 +342,22 @@ services:
338
342
-
339
343
class : mglaman\PHPStanDrupal\Type\InspectorTypeExtension
340
344
tags :
341
- - phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension
345
+ - phpstan.typeSpecifier.staticMethodTypeSpecifyingExtension
346
+
347
+ conditionalTags :
348
+ mglaman\PHPStanDrupal\Reflection\EntityFieldsViaMagicReflectionExtension :
349
+ phpstan.broker.propertiesClassReflectionExtension : %drupal.extensions.entityFieldsViaMagicReflection%
350
+ mglaman\PHPStanDrupal\Reflection\EntityFieldMethodsViaMagicReflectionExtension :
351
+ phpstan.broker.methodsClassReflectionExtension : %drupal.extensions.entityFieldMethodsViaMagicReflection%
352
+ mglaman\PHPStanDrupal\Type\EntityQuery\EntityQueryDynamicReturnTypeExtension :
353
+ phpstan.broker.dynamicMethodReturnTypeExtension : %drupal.extensions.entityQuery%
354
+ mglaman\PHPStanDrupal\Type\EntityQuery\EntityQueryAccessCheckDynamicReturnTypeExtension :
355
+ phpstan.broker.dynamicMethodReturnTypeExtension : %drupal.extensions.entityQuery%
356
+ mglaman\PHPStanDrupal\Type\EntityQuery\AccessCheckTypeSpecifyingExtension :
357
+ phpstan.typeSpecifier.methodTypeSpecifyingExtension : %drupal.extensions.entityQuery%
358
+ mglaman\PHPStanDrupal\Type\EntityStorage\GetQueryReturnTypeExtension :
359
+ phpstan.broker.dynamicMethodReturnTypeExtension : %drupal.extensions.entityQuery%
360
+ mglaman\PHPStanDrupal\Type\EntityRepositoryReturnTypeExtension :
361
+ phpstan.broker.dynamicMethodReturnTypeExtension : %drupal.extensions.entityRepository%
362
+ mglaman\PHPStanDrupal\Drupal\DrupalStubFilesExtension :
363
+ phpstan.stubFilesExtension : %drupal.extensions.stubFiles%
0 commit comments