*
* @param mixed $data Data to encode
* @param string $format Format name
- * @param array $context options that normalizers/encoders have access to
+ * @param array $context Options that normalizers/encoders have access to
*
- * @return scalar
+ * @return string|int|float|bool
*
* @throws UnexpectedValueException
*/
/**
* Checks whether the serializer can encode to given format.
*
- * @param string $format format name
+ * @param string $format Format name
*
* @return bool
*/