Skip to content

Problem with autoloaded classes that aren't namespaced and have the same name as any docblock comment #109

Open
@deresh

Description

@deresh

I have an part of legacy application that is added in symfony and i have a problem with annitationparser.

Annotation parser finds "@author" annotation, then immediatly tries to find annotation class for this annotation.

It finds my class named "author" (it's withouth namespace), properly parses it as not annotation (annotation metadata array has "is_annotation" set to false.

But then in DocParser.php (line 749) it does additional check for "author" class and this fails, as it check if this class is in array $this->ignoredAnnotationNames (and this array is empty, it never gets set).

And AnnotationReader global ignored annotation names is checked later in code :/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions