Skip to content

Add support to requireParentConstructorCall for indirect calls #222

Open
@TravisCarden

Description

@TravisCarden

As originally reported in phpstan/phpstan#9577, calling a constructor indirectly, e.g., via a trait method alias, is not supported by requireParentConstructorCall. I am opening this issue per @ondrejmirtes's request there.

Code snippet that reproduces the problem

https://phpstan.org/r/3d12f7cf-b4dd-4ba3-be0d-5738eba76d53

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