Skip to content

Annotations from private members shouldn't be inherited #76

@aik099

Description

@aik099

I think that regardless of 'inherited' => true mark on the annotation we shouldn't inherit it from parent class in case of scope modifier of it's property/method was set to private.

class BaseClass
{
    /**
     * @note("First note annotation")
     */
    private $prop1;

}

class SubClass extends BaseClass
{
    /**
     * @note("Second note annotation")
     */
    private $prop1;

}

I suspect that if I redefine private property/method in sub-class, then it's entirely different property/method and can't have any inherited annotations on it.

Blocked by #94

Metadata

Metadata

Assignees

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