Skip to content

Conversation

@samsonasik
Copy link
Member

@samsonasik samsonasik commented Dec 16, 2025

Ref https://getrector.com/demo/012a0ed3-230b-4077-bbe0-8697616b726a
Fixes rectorphp/rector#9558

when both exists, only remove the annotation, keep the attribute so not duplicated.

…s on DataProviderAnnotationToAttributeRector
@samsonasik
Copy link
Member Author

Fixed 🎉 /cc @simbig

@samsonasik
Copy link
Member Author

@TomasVotruba ready 👍

@TomasVotruba TomasVotruba merged commit 6d2b1ba into main Dec 17, 2025
7 checks passed
@TomasVotruba TomasVotruba deleted the both-ann branch December 17, 2025 07:45
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.

Incorrect behavior of DataProviderAnnotationToAttributeRector when Attribute already exists

3 participants