Skip to content

Commit

Permalink
fix intersection types in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Jul 21, 2021
1 parent c534a7a commit 85b67b8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Tests/Encoder/XmlEncoderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -933,7 +933,7 @@ private function createXmlEncoderWithDateTimeNormalizer(): XmlEncoder
/**
* @return MockObject&NormalizerInterface
*/
private function createMockDateTimeNormalizer()
private function createMockDateTimeNormalizer(): NormalizerInterface
{
$mock = $this->createMock(CustomNormalizer::class);

Expand Down
2 changes: 1 addition & 1 deletion Tests/Normalizer/AbstractNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class AbstractNormalizerTest extends TestCase
private $normalizer;

/**
* @var ClassMetadataFactoryInterface|MockObject
* @var MockObject&ClassMetadataFactoryInterface
*/
private $classMetadata;

Expand Down
2 changes: 1 addition & 1 deletion Tests/Normalizer/ArrayDenormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class ArrayDenormalizerTest extends TestCase
private $denormalizer;

/**
* @var SerializerInterface|MockObject
* @var MockObject&SerializerInterface
*/
private $serializer;

Expand Down
2 changes: 1 addition & 1 deletion Tests/Normalizer/JsonSerializableNormalizerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class JsonSerializableNormalizerTest extends TestCase
private $normalizer;

/**
* @var MockObject|SerializerInterface
* @var MockObject&JsonSerializerNormalizer
*/
private $serializer;

Expand Down

0 comments on commit 85b67b8

Please sign in to comment.