[Serializer] Fixed serialize and denormalize return types

This commit is contained in:
vudaltsov 2020-12-05 21:35:32 +03:00 committed by Fabien Potencier
parent 7c31fa0537
commit 67277e55f0
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ interface DenormalizerInterface
* @param string $format Format the given data was extracted from
* @param array $context Options available to the denormalizer
*
* @return object|array
* @return mixed
*
* @throws BadMethodCallException Occurs when the normalizer is not called in an expected context
* @throws InvalidArgumentException Occurs when the arguments are not coherent or not supported

View File

@ -32,7 +32,7 @@ interface SerializerInterface
*
* @param mixed $data
*
* @return object|array
* @return mixed
*/
public function deserialize($data, string $type, string $format, array $context = []);
}