Skip to content

Release 3.2.0 fails when parsing annotations #108

@xabbuh

Description

@xabbuh

With the release of 3.2.0 (more specific the changes from #89) parsing a docblock fails if it not contains only phpdoc but also annotations (for example, to configure Doctrine mapping metadata).

For example, in Symfony we have the following test data:

class Dummy extends ParentDummy
{

    /**
     * @var \DateTime[]
     * @Groups({"a", "b"})
     */
    public $collection;

    // ...
}

I am not sure what could be a possible fix here. Silently ignore these lines? But this may be bad user experience as it does not help to find your own mistakes. Maybe ignore only tags that are followed by parentheses?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions