Skip to content

[DeadCode] RemoveUnusedPrivateMethodRector removes private methods from traits #1334

@mxr576

Description

@mxr576

There is a valid use case for using private in traits if you do not want child classes of a class that uses a trait to inherit the method/property that a trait defines.

https://3v4l.org/keT0W

RemoveUnusedPrivateMethodRector removes private methods from traits in <= 0.4.11 version.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions