diff --git a/CallbackTransformer.php b/CallbackTransformer.php index 34611bcf9a..6b8e5ee2e3 100644 --- a/CallbackTransformer.php +++ b/CallbackTransformer.php @@ -44,8 +44,8 @@ public function __construct(\Closure $transform, \Closure $reverseTransform) * * @return mixed The value in the transformed representation * - * @throws UnexpectedTypeException when the argument is not a string - * @throws DataTransformerException when the transformation fails + * @throws UnexpectedTypeException when the argument is not a string + * @throws TransformationFailedException when the transformation fails */ public function transform($data) { @@ -60,8 +60,8 @@ public function transform($data) * * @return mixed The value in the original representation * - * @throws UnexpectedTypeException when the argument is not of the expected type - * @throws DataTransformerException when the transformation fails + * @throws UnexpectedTypeException when the argument is not of the expected type + * @throws TransformationFailedException when the transformation fails */ public function reverseTransform($data) { diff --git a/DataTransformerInterface.php b/DataTransformerInterface.php index 9d60403402..6b7aea5614 100644 --- a/DataTransformerInterface.php +++ b/DataTransformerInterface.php @@ -43,8 +43,8 @@ interface DataTransformerInterface * * @return mixed The value in the transformed representation * - * @throws UnexpectedTypeException when the argument is not a string - * @throws DataTransformerException when the transformation fails + * @throws UnexpectedTypeException when the argument is not a string + * @throws TransformationFailedException when the transformation fails */ function transform($value); @@ -70,8 +70,8 @@ function transform($value); * * @return mixed The value in the original representation * - * @throws UnexpectedTypeException when the argument is not of the expected type - * @throws DataTransformerException when the transformation fails + * @throws UnexpectedTypeException when the argument is not of the expected type + * @throws TransformationFailedException when the transformation fails */ function reverseTransform($value); }