Skip to content

Commit

Permalink
Merge pull request #56 from iborysenko/patch-1
Browse files Browse the repository at this point in the history
Default mapping operation must be cloned
  • Loading branch information
mark-gerarts committed Apr 15, 2020
2 parents a74b074 + 9706db1 commit d3fc010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Configuration/Mapping.php
Expand Up @@ -353,7 +353,7 @@ public function withNameResolver(NameResolverInterface $nameResolver): MappingIn
protected function getDefaultMappingOperation(): MappingOperationInterface
{
if ($this->defaultMappingOperation === null) {
$operation = $this->options->getDefaultMappingOperation();
$operation = clone $this->options->getDefaultMappingOperation();
$operation->setOptions($this->options);
$this->defaultMappingOperation = $operation;
}
Expand Down

0 comments on commit d3fc010

Please sign in to comment.