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

Remove unneeded alias in import #4492

Closed
JakeFr opened this issue Aug 5, 2019 · 1 comment
Closed

Remove unneeded alias in import #4492

JakeFr opened this issue Aug 5, 2019 · 1 comment

Comments

@JakeFr
Copy link

JakeFr commented Aug 5, 2019

Hello,

Fixers related to import do not remove unneeded alias.
If would be nice to have a fixer for this code

  • before running PHP CS Fixer (no changes):
namespace Vendor\Package;

use OtherVendor\OtherPackage\BazClass as BazClass;
  • with the changes you expected instead:
namespace Vendor\Package;

use OtherVendor\OtherPackage\BazClass;

And fix the other imports (trait, const and function)

WDYT?
Are there any code side effects?

@SpacePossum
Copy link
Contributor

this is implemented in #6267 , closing as such

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants