Skip to content

How to remove a used namespace? #102

Description

@ruudk

First of all, thanks for this amazing project.

It's very easy to add uses using $namespace->addUse but it appears to be impossible to remove an imported namespace.

It would be great if it was possible to call $namespace->removeUse('Fully\Qualified');.

Currently I solve the useless imports by running it through PHP CS Fixer, that works. But feels a bit of a work around.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to 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