소스 검색

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

Gregwar 14 년 전
부모
커밋
a1810d6881
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      src/Symfony/Component/Form/CallbackTransformer.php
  2. 2 2
      src/Symfony/Component/Form/DataTransformerInterface.php

+ 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);
 }