[DCOM-164] @type phpdoc annotations are not ignored (@type == @var) Created: 22/Jan/13 Updated: 22/Jan/13 |
|
| Status: | Open |
| Project: | Doctrine Common |
| Component/s: | Annotations |
| Affects Version/s: | 2.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Matthieu Napoli | Assignee: | Benjamin Eberlei |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
phpDocumentor guys wrote their own PSR to define how to use phpdoc properly (https://github.com/phpDocumentor/phpDocumentor2/blob/develop/docs/PSR.md). 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? |
| Comments |
| Comment by Matthieu Napoli [ 22/Jan/13 ] |