Skip to content

Fix CanonicalFactoryTrait::factoryCreate return type should be static #48

@acbramley

Description

@acbramley

CanonicalFactoryTrait::factoryCreate has a return type of :self but is designed to be used in other classes.
This causes issues with phpstan such as

Method PreviousNext\Ds\Common\Layout\Section\Section::create() should return static(PreviousNext\Ds\Common\Layout\Section\Section) but returns PreviousNext\Ds\Common\Layout\Section\Section

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions