Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8e3bc85

Browse files
committedOct 29, 2020
(fix): being more clear about the options
1 parent 1b01335 commit 8e3bc85

4 files changed

+4
-4
lines changed
 

‎stubs/ContextAwareDenormalizerInterface.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Symfony\Component\Serializer\Normalizer;
55
interface ContextAwareDenormalizerInterface extends DenormalizerInterface
66
{
77
/**
8-
* @param mixed $data
8+
* @param mixed|object|array<mixed> $data
99
* @param string $format
1010
* @param array<mixed> $context
1111
* @return bool

‎stubs/DecoderInterface.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface DecoderInterface
1010
* @param string $data
1111
* @param string $format
1212
* @param array<mixed> $context
13-
* @return mixed
13+
* @return mixed|object|array<mixed>
1414
*/
1515
public function decode($data, $format, array $context = []);
1616

‎stubs/EncoderInterface.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Symfony\Component\Serializer\Encoder;
55
interface EncoderInterface
66
{
77
/**
8-
* @param mixed $data
8+
* @param mixed|object|array<mixed> $data
99
* @param string $format
1010
* @param array<mixed> $context
1111
* @return string|int|float|bool

‎stubs/NormalizerInterface.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Symfony\Component\Serializer\Normalizer;
55
interface NormalizerInterface
66
{
77
/**
8-
* @param mixed $object
8+
* @param mixed|object|array<mixed> $object
99
* @param string $format
1010
* @param array<mixed> $context
1111
* @return array<mixed>|string|int|float|bool|null

0 commit comments

Comments
 (0)
Please sign in to comment.