Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/XML/SignedElementTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ public function getSignature(): ?Signature
*/
protected function setSignature(Signature $signature): void
{
/**
* By disabling formatting on signed objects, we prevent issues with invalid signatures later on
* at the cost of some whitespace taking up useless bytes in the outputted document.
*/
$this->formatOutput = false;
$this->signature = $signature;
}

Expand Down