Skip to content

Commit

Permalink
JsonSerializationVisitor now clones the root element
Browse files Browse the repository at this point in the history
  • Loading branch information
tyler-sommer committed Jun 19, 2013
1 parent 5fda5ab commit 3a151d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/JMS/Serializer/JsonSerializationVisitor.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function endVisitingObject(ClassMetadata $metadata, $data, array $type, C
$rs = new \ArrayObject();

if (array() === $this->getRoot()) {
$this->setRoot($rs);
$this->setRoot(clone $rs);
}
}

Expand Down

0 comments on commit 3a151d1

Please sign in to comment.