[Serializer] Fixed serialize and denormalize return types
This commit is contained in:
parent
7c31fa0537
commit
67277e55f0
@ -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
|
||||
|
@ -32,7 +32,7 @@ interface SerializerInterface
|
||||
*
|
||||
* @param mixed $data
|
||||
*
|
||||
* @return object|array
|
||||
* @return mixed
|
||||
*/
|
||||
public function deserialize($data, string $type, string $format, array $context = []);
|
||||
}
|
||||
|
Reference in New Issue
Block a user