Explorar el Código

Made the @Type annotation allowed on methods.

Pierre-Yves LEBECQ hace 12 años
padre
commit
cb98b8c473
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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
 {