Skip to content

Conversation

mhpcc
Copy link

@mhpcc mhpcc commented Dec 10, 2021

required since symgony 6.0.1 did not remove the return type declaration

$type = $data[self::KEY_TYPE];
unset($data[self::KEY_TYPE]);
$data = $data[self::KEY_SCALAR] ?? $data;
$data = $this->denormalize($data, $type, $format, $context);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line should be removed in the two versions (it is actually one of the fixes introduced in #87), because it triggers two denormalizations, which is wrong in most cases since it will potentially try to denormalize an object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants