Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to remove a used namespace? #102

Closed
ruudk opened this issue Feb 21, 2022 · 0 comments
Closed

How to remove a used namespace? #102

ruudk opened this issue Feb 21, 2022 · 0 comments

Comments

@ruudk
Copy link

ruudk commented Feb 21, 2022

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.

@dg dg closed this as completed in bd30876 Mar 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant