Skip to content


DCOM-164: @type phpdoc annotations are not ignored (@type == @var) #465

doctrinebot opened this Issue · 3 comments

2 participants


Jira issue originally created by user mnapoli:

phpDocumentor guys wrote their own PSR to define how to use phpdoc properly (

They deprecate the @var annotation and recommend using @type instead.

The @type (phpdoc) annotation is not blacklisted/ignored by the AnnotationReader. Code that uses this annotation raises errors with Doctrine/Annotations.

@type should be blacklisted/ignored, but may that create BC breaks for users?


Comment created by mnapoli:

PR: doctrine/annotations#2


Comment created by @guilhermeblanco:

Will not fix as phpDoc2 does not use @type anymore.


Issue was closed with resolution "Won't Fix"

@doctrinebot doctrinebot added the Bug label
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.