Skip to content

Commit

Permalink
Allow toggling union to intersection type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
ruudk authored and ondrejmirtes committed Mar 5, 2021
1 parent 053bf9e commit a45fee4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions extension.neon
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
parameters:
mockery:
convertUnionToIntersectionType: true
stubFiles:
- stubs/MockInterface.stub

parametersSchema:
mockery: structure([
convertUnionToIntersectionType: bool()
])

services:
-
class: PHPStan\Mockery\Reflection\StubMethodsClassReflectionExtension
Expand Down Expand Up @@ -59,5 +66,7 @@ services:

-
class: PHPStan\Mockery\PhpDoc\TypeNodeResolverExtension
tags:
- phpstan.phpDoc.typeNodeResolverExtension

conditionalTags:
PHPStan\Mockery\PhpDoc\TypeNodeResolverExtension:
phpstan.phpDoc.typeNodeResolverExtension: %mockery.convertUnionToIntersectionType%

0 comments on commit a45fee4

Please sign in to comment.