浏览代码

Made the @Type annotation allowed on methods.

Pierre-Yves LEBECQ 12 年之前
父节点
当前提交
cb98b8c473
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/JMS/Serializer/Annotation/Type.php

+ 1 - 1
src/JMS/Serializer/Annotation/Type.php

@@ -20,7 +20,7 @@ namespace JMS\Serializer\Annotation;
 
 /**
  * @Annotation
- * @Target("PROPERTY")
+ * @Target({"PROPERTY", "METHOD"})
  */
 final class Type
 {