-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[PropertyInfo] Dont try to set null when argument is not nullable #38920
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
Conversation
The test |
If it's a bug fix, shouldn't it target 4.4? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's about constructor, non nullable properties (typehinted in php 7.4) and mutators?.
Last time I checked, the code was very different in 4.4 and 5.1. I can check again later. |
@Nyholm Can you finish this one? I think it should go in 5.2. |
8a750ce
to
756b9bc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please rebase to target 5.3?
@Nyholm What's the status here? |
@Nyholm Sorry to ping you again on this one :) |
I thought i would patch a simple bug. But Im not sure this is needed. I dont even remember what I did to find this bug. Im closing this since it has not been a priority for me (or anyone else) to fix it. |
This will break up #38800 into two smaller pieces.
If there is a method
setPreviousException(Throwable $t)
and we try to unserialise a value of ['previousException'=>null], we should not try to invoke this setter. It will cause an error.