Skip to content

Commit

Permalink
perf(documentator): Document::mutate() will clone document only once.
Browse files Browse the repository at this point in the history
  • Loading branch information
LastDragon-ru committed Aug 23, 2024
1 parent 7842200 commit 73897b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/documentator/src/Markdown/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public function mutate(Mutation ...$mutations): static {
}

$content = (string) $document->getEditor()->mutate($changes);
$document = clone $document->setContent($content);
$document = $document->setContent($content);
}

return $document;
Expand Down

0 comments on commit 73897b7

Please sign in to comment.