Doctrine Common
  1. Doctrine Common
  2. DCOM-164

@type phpdoc annotations are not ignored (@type == @var)

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: Annotations
    • 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?

        Activity

        Show
        Matthieu Napoli added a comment - PR: https://github.com/doctrine/annotations/pull/2
        Hide
        Guilherme Blanco added a comment -

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

        Show
        Guilherme Blanco added a comment - Will not fix as phpDoc2 does not use @type anymore.

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Matthieu Napoli
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: