Skip to content

Make possible to inherit normalizer annotation from a parent class #37

@BowlOfSoup

Description

@BowlOfSoup
class Bar
{
    /**
     * @Bos\Normalize()
     */
    public function getName(): string
    {
        return 'john wick';
    }
}
 
class Foo extends Bar
{
    /**
     * PHPDoc without @Bos\Normalize annotation
     */
    public function getName(): string
    {
        return 'John Wick';
    }
}

When normalizing getName() from Foo, nothing will output.

We should make an annotation that indicates that the parent Normalize() annotations should be inherited.

Example:

class Foo extends Bar
{
    /**
     * @Bos\InheritNormalize()
     */
    public function getName(): string
    {
        return 'John Wick';
    }
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions