Parcourir la source

Made the @Type annotation allowed on methods.

Pierre-Yves LEBECQ il y a 12 ans
Parent
commit
cb98b8c473
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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
 {