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 imports #135

Open
prolic opened this issue May 17, 2020 · 0 comments
Open

Remove unneeded imports #135

prolic opened this issue May 17, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@prolic
Copy link
Owner

prolic commented May 17, 2020

When parsing a uuid or guid, it's required ramsey imports will be merged into the namespace imports, leading to unneeded imports in other classes of that namespace.

Solutions?

Maybe there is a way to detect unused imports right before dumping the file and thus those can be removed. Tools like php-cs-fixer can clean this up as well, but it would be much cleaner if the generated class can be kept absolutely correct.

@prolic prolic added the enhancement New feature or request label May 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant