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

[AutoImport] Skip auto import on no namespace used class on auto import enabled #5247

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

samsonasik
Copy link
Member

It currently cause imported which make root class used invalid, see https://getrector.com/demo/25b150bf-d253-47ff-b1bc-b5456b520986

@samsonasik
Copy link
Member Author

Fixed 🎉

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it to have faster feedback to test ;)

@samsonasik samsonasik merged commit f0b8af8 into main Nov 14, 2023
41 checks passed
@samsonasik samsonasik deleted the auto-import-skip-no-namespace-used-class branch November 14, 2023 05:14
@samsonasik
Copy link
Member Author

/cc @staabm please try latest rector/rector:dev-main

@clxmstaab
Copy link
Contributor

0.18.7 without this fix produces fatal wrong code. wdyt about a immediate bugfix release?

//cc @TomasVotruba

@samsonasik
Copy link
Member Author

@clxmstaab just tagged 0.18.8 https://github.com/rectorphp/rector/releases/tag/0.18.8

@clxmstaab
Copy link
Contributor

thx!

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