-
-
Notifications
You must be signed in to change notification settings - Fork 701
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
Incorrect behavior of AnnotationToAttributeRector #6928
Comments
RECTOR CHANGED: use ApiPlatform\Core\Annotation\ApiFilter; #[ApiFilter(SearchFilter::class, properties: ['id' => 'exact', 0 => ActivationRequest::FIRSTNAME])] EXPECTED: use ApiPlatform\Core\Annotation\ApiFilter; #[ApiFilter(SearchFilter::class, properties: ['id' => 'exact', ActivationRequest::FIRSTNAME => 'ipartial'])] |
Thanks for reporting. Could you check this fix if it fits your use case? |
Yes it fixs. But there's similar use case... |
I see. Could you add test fixture with that code in the |
I tried to do it in rectorphp/rector-src#1661 |
I am closing it as resolved at rectorphp/rector-src#1661 |
Bug Report
Minimal PHP Code Causing Issue
See https://getrector.org/demo/1ec72cab-b010-69f0-9785-0f4103e3217a
Responsible rules
AnnotationToAttributeRector
Expected Behavior
The text was updated successfully, but these errors were encountered: