Skip to content

Commit

Permalink
JMSSerializerObjectSerializer > Remove DeserializationContext
Browse files Browse the repository at this point in the history
setSerializeNull option is available only on the serialization context [#694](schmittjoh/JMSSerializerBundle#694)
  • Loading branch information
ruudk committed Dec 12, 2018
1 parent a21f594 commit 9f407a8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/JMSSerializerObjectSerializer.php
Expand Up @@ -37,9 +37,6 @@ public function serialize($object)

public function deserialize($serializedObject, $type)
{
$deserializationContext = DeserializationContext::create()
->setSerializeNull(true);

return $this->serializer->deserialize($serializedObject, $type, $this->format, $deserializationContext);
return $this->serializer->deserialize($serializedObject, $type, $this->format);
}
}

0 comments on commit 9f407a8

Please sign in to comment.