-
-
Notifications
You must be signed in to change notification settings - Fork 699
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
AnnotationToAttribute doesn't work if there s an existing attribute above annotations #7453
Comments
Possibly related nikic/PHP-Parser#201 |
We'll need an isolated failing demo link from: http://getrector.org/demo, from that create failing test case pull-request. |
Seems like the way php-parser resolve this: nikic/PHP-Parser#887 |
We discussed it and the way is to flip those with e.g. fixer. |
related previous discussion |
@bendavies That's why the PHP CS Fixer is needed to handle these situations. It can be only done with token scope. |
indeed, but note your last comment on that issue (granted it might be a slightly different issue)
but now we think there is :) |
It was a different scope indeed. |
Bug Report
When using
DoctrineSetList::ANNOTATIONS_TO_ATTRIBUTES
, entities with attributes above annotations will fail to transform the annotationa to attributes.If the
ApiResource
attributes are removed, then the Doctrine annotations are correctly converted.Minimal PHP Code Causing Issue
Expected Behaviour
all the Annotations become Attributes!
The text was updated successfully, but these errors were encountered: