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

MyCLabsClassToEnumRector should keep traits #7241

Closed
OskarStark opened this issue Jun 16, 2022 · 1 comment · Fixed by rectorphp/rector-src#2696
Closed

MyCLabsClassToEnumRector should keep traits #7241

OskarStark opened this issue Jun 16, 2022 · 1 comment · Fixed by rectorphp/rector-src#2696
Labels

Comments

@OskarStark
Copy link
Contributor

OskarStark commented Jun 16, 2022

Feature Request

Right now, a used trait is removed when converting an MyClabs\Enum to an native PHP enum.

Reproducer

https://github.com/OskarStark/reproducer-rector-7241

Expected behaviour

The trait should still be used afterwards

@TomasVotruba
Copy link
Member

TomasVotruba commented Jul 20, 2022

Fixed in rectorphp/rector-src#2696

Next time please send the failing fixture diretcly to the MyCLabsClassToEnumRectorTest rule, so we can resolve this sooner 👍

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

Successfully merging a pull request may close this issue.

2 participants