-
-
Notifications
You must be signed in to change notification settings - Fork 687
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
CorrectDefaultTypesOnEntityPropertyRector throws error with null default value for integer doctrine entity field #5454
Comments
Hi, we'll need a failing demo link to have context: https://getrector.org/demo |
Hi, Great tool, sorry i didn't use this in my initial post. I think this is reproducing it: Thanks. |
Thank you for your report and demo link! Could you send a failing test case in a pull-request, so we have it covered in Rector? |
We've just switch to a custom static doctrine annotation parser, where this issues should be resolved. |
rectorphp/rector-src@d2818f6 [Reflection] Remove unnecessary ReflectionClass object creation on create ReflectionMethod (#5454)
Question
Not sure if this is a bug / not catered for yet or I'm doing something wrong?
When using the
CorrectDefaultTypesOnEntityPropertyRector
i'm hitting theNotImplementedYetException
insiderefactorToIntType
with the following Doctrine Entity code. Its due to the null default value.The error i get is:
The text was updated successfully, but these errors were encountered: