Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      The @target annotation can be used for adding annotation-targets. However, adding multiple targets results in unwanted behaviour, as the targets aren't OR'ed together, but simply added.

      For instance: @target(

      {METHOD, METHOD}

      ) results in an annotation that can only be added to properties (2 + 2 = 4), instead of the wanted 2, and other weirdness.

        Activity

        Hide
        Marco Pivetta added a comment -

        Merged: https://github.com/doctrine/annotations/commit/c1a38760a6cfeec627ed66f9192db2acce1cb9e0

        Note: no assigned fix version since doctrine/annotation versioning diverges from doctrine/common versioning.

        Likely fixed with doctrine/annotations:1.1.3

        Show
        Marco Pivetta added a comment - Merged: https://github.com/doctrine/annotations/commit/c1a38760a6cfeec627ed66f9192db2acce1cb9e0 Note: no assigned fix version since doctrine/annotation versioning diverges from doctrine/common versioning. Likely fixed with doctrine/annotations:1.1.3

          People

          • Assignee:
            Marco Pivetta
            Reporter:
            Joshua Thijssen
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: