Skip to content

Rename leaves an aliased use statement (use ... as ...) intact #395

Description

@bbrala

Companion to GitLab issue #3149725.

When a class is renamed/unaliased to its original name, the existing use ... as ...; alias import is left behind unused. The rewrite should reconcile/remove the now-unused alias import. (Related to general name-import handling; PHPCS in the bot cleans some of this, but the leftover alias is worth addressing in the rector output itself.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions