Skip to content

Update Symfony62Test to cover to not remove existing use statement on rename class#375

Merged
TomasVotruba merged 4 commits intomainfrom
update-test
Mar 6, 2023
Merged

Update Symfony62Test to cover to not remove existing use statement on rename class#375
TomasVotruba merged 4 commits intomainfrom
update-test

Conversation

@samsonasik
Copy link
Copy Markdown
Member

This is to cover make consistent to not remove unused use when no auto import (replace) and no $rectorConfig->removeUnusedImports() used, see no namespace vs namespaced class below:

Without namespace (got removed) : https://getrector.com/demo/1fe1232a-4741-4564-b225-8f0822338071
With namespace (unused use is kept) : https://getrector.com/demo/b4de0818-8ca3-496b-92c7-6f54e9ffd4cd

on PR:

@samsonasik samsonasik closed this Mar 6, 2023
@samsonasik samsonasik reopened this Mar 6, 2023
@samsonasik samsonasik closed this Mar 6, 2023
@samsonasik samsonasik reopened this Mar 6, 2023
@samsonasik
Copy link
Copy Markdown
Member Author

All checks have passed 🎉 @TomasVotruba I think it is ready.

@TomasVotruba TomasVotruba merged commit c527ff3 into main Mar 6, 2023
@TomasVotruba TomasVotruba deleted the update-test branch March 6, 2023 11:27
@TomasVotruba
Copy link
Copy Markdown
Member

TomasVotruba commented Mar 6, 2023

Thanks 👍

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

Successfully merging this pull request may close these issues.

3 participants