Sfoglia il codice sorgente

[Various] Fixed errors on PHPDocs exception names (TransformationFailedException)

Gregwar 14 anni fa
parent
commit
a1810d6881

+ 2 - 2
src/Symfony/Component/Form/CallbackTransformer.php

@@ -45,7 +45,7 @@ class CallbackTransformer implements 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 TransformationFailedException  when the transformation fails
      */
     public function transform($data)
     {
@@ -61,7 +61,7 @@ class CallbackTransformer implements DataTransformerInterface
      * @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 TransformationFailedException  when the transformation fails
      */
     public function reverseTransform($data)
     {

+ 2 - 2
src/Symfony/Component/Form/DataTransformerInterface.php

@@ -44,7 +44,7 @@ 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 TransformationFailedException  when the transformation fails
      */
     function transform($value);
 
@@ -71,7 +71,7 @@ interface DataTransformerInterface
      * @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 TransformationFailedException  when the transformation fails
      */
     function reverseTransform($value);
 }