-
Notifications
You must be signed in to change notification settings - Fork 125
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
Ensure nullable properties are handled #597
base: next
Are you sure you want to change the base?
Conversation
ping @Korbeil |
@Korbeil could you take a look at this? It's been bugging me for years now. |
Could you update the code ? (like rebasing on |
@Korbeil done |
Tests are failing due to a missing plugin configuration in composer.json:
|
I pushed a commit on |
@Korbeil there's nothing new in |
Sorry, I pushed on my fork but forgot to push here :< (it's fixed now) |
@flavioheleno You will need to force-push again to trigger the CI. |
I'll fix the failing tests right away |
this PR is affecting more productions than it should, I'll dig through it again and rework on its solution to ensure it's only changing the bits that should be changed. eg. of unwanted side effect: foreach ($data['object'] as $key => $value_2) {
if ($value_2 === null) {
$values_1[$key] = null;
continue;
}
$values_1[$key] = $value_2;
} |
This is a first try at fixing #559. It may not even be the right fix, but I want to help fix it :)
I'm pretty sure that it's missing things like:
ArrayType
, it could be moved toMapType
;I need advice/guidance in how to properly approach this.
The effect this change does is, for example, from this:
To this: