Closed ruudk closed 2 years ago
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.
$namespace->addUse
It would be great if it was possible to call $namespace->removeUse('Fully\Qualified');.
$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.
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.