Skip to content

Commit a45fee4

Browse files
ruudkondrejmirtes
authored andcommitted
Allow toggling union to intersection type conversion
1 parent 053bf9e commit a45fee4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

extension.neon

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
parameters:
2+
mockery:
3+
convertUnionToIntersectionType: true
24
stubFiles:
35
- stubs/MockInterface.stub
46

7+
parametersSchema:
8+
mockery: structure([
9+
convertUnionToIntersectionType: bool()
10+
])
11+
512
services:
613
-
714
class: PHPStan\Mockery\Reflection\StubMethodsClassReflectionExtension
@@ -59,5 +66,7 @@ services:
5966

6067
-
6168
class: PHPStan\Mockery\PhpDoc\TypeNodeResolverExtension
62-
tags:
63-
- phpstan.phpDoc.typeNodeResolverExtension
69+
70+
conditionalTags:
71+
PHPStan\Mockery\PhpDoc\TypeNodeResolverExtension:
72+
phpstan.phpDoc.typeNodeResolverExtension: %mockery.convertUnionToIntersectionType%

0 commit comments

Comments
 (0)