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.
1 parent e55b865 commit 82ede04Copy full SHA for 82ede04
src/DeepCopySerializer.php
@@ -25,11 +25,9 @@ class DeepCopySerializer extends Serializer
25
protected function serializeObject($value)
26
{
27
if ($this->objectStorage->contains($value)) {
28
- return [self::CLASS_IDENTIFIER_KEY => $this->objectStorage[$value]];
+ return $this->objectStorage[$value];
29
}
30
31
- $this->objectStorage->attach($value, $this->objectMappingIndex++);
32
-
33
$reflection = new ReflectionClass($value);
34
$className = $reflection->getName();
35
@@ -39,4 +37,4 @@ protected function serializeObject($value)
39
37
return $serialized;
40
38
41
42
-}
+}
0 commit comments