theseer/phpdox — pull request #155 by exi (2014-07-31 14:30:18+00:00)
Title: properly parse docblock annotations

The old regex would allow docblocks like:
/**
* @var \Doctrine\Common\Collections\Collection
*
* @ORM\ManyToMany(targetEntity="PriceList", inversedBy="areas", fetch="EXTRA_LAZY")
* @ORM\JoinTable(name="area_has_pricelist",
* joinColumns={@ORM\JoinColumn(name="area_id", referencedColumnName="id")},
* inverseJoinColumns={@ORM\JoinColumn(name="pricelist_id", referencedColumnName="id")}
* )
*/

But that would crash later on when trying to create a dom node with the generic
docblock element because the name gets parsed into Orm\JoinColumn(...
and the generic docblock elementry tries to create an dom element with that
name as a tag.