Doctrine Common
  1. Doctrine Common
  2. DCOM-129

Annotation parser matches colon after annotation

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Code

      /**
      * Removes given $node from the tree and reparents its descendants
      *
      * @todo may be improved, to issue single query on reparenting
      * @param object $node
      * @throws RuntimeException - if something fails in transaction
      * @return void
      */
      public function removeFromTree($node)
      {
      

      fails with `[Semantical Error] The annotation "@todo:" in method Gedmo\Tree\Entity\Repository\ClosureTreeRepository::removeFromTree() was never imported. Did you maybe forget to add a "use" statement for this annotation?`.

      As you see it tryes find annotation with name "@todo:". Don't know, maybe rtrim($name, ':') would enough.

        Activity

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Konstantin
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: