We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This PR made me realize there is another problem, a little bit more complex to mitigate:
readonly class SomeClass { public function __construct(public int|null $foo = 1, public int $bar = 0) { } } $autoMapper->map([], SomeClass::class);
two problems here:
foo
null
1
bar
I'm not sure how we could fix this... maybe by adding the default value in the WriteMutator?
WriteMutator
The text was updated successfully, but these errors were encountered:
NullableTransformer
Successfully merging a pull request may close this issue.
This PR made me realize there is another problem, a little bit more complex to mitigate:
two problems here:
foo
defaults tonull
whereas it should default to1
bar
is not present, although the property has a default valueI'm not sure how we could fix this... maybe by adding the default value in the
WriteMutator
?The text was updated successfully, but these errors were encountered: