Skip to content

Do not require trait name in trait method alias #17331

Open
@mvorisek

Description

@mvorisek

Description

repro: https://3v4l.org/vE0YH

Currently

    use A {
        A::x as private ax;
    }

is needed to import trait method under different name when such method is defined in more than 1 trait.

There is no ambiguity, I would expect php to understand the:

    use A {
        x as private ax;
    }

as x method from A trait.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions