Skip to content

[CodeQuality] Allow private construtor for named constructors #2063

@TomasVotruba

Description

@TomasVotruba

I guess you could look for "return new self/static" in static methods + protected/private constructor ? Not sure how hard it is to figure out such combination.

And yeah, the public parent comes from Symfony's HttpFoundation ParameterBag class.

Originally posted by @gnutix in #2057 (comment)

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