We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ad37a28 + 78db0b9 commit 9f85db9Copy full SHA for 9f85db9
Serializer/Callback.php
@@ -43,7 +43,7 @@ public function setVersion($version)
43
44
public function serialize($object)
45
{
46
- $context = $this->serializer instanceof SerializerInterface ? new SerializationContext() : array();
+ $context = $this->serializer instanceof SerializerInterface ? SerializationContext::create()->enableMaxDepthChecks() : array();
47
48
if ($this->groups) {
49
$context->setGroups($this->groups);
0 commit comments