We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 131a2a8 commit f5e34d3Copy full SHA for f5e34d3
src/XML/SignedElementTrait.php
@@ -74,6 +74,11 @@ public function getSignature(): ?Signature
74
*/
75
protected function setSignature(Signature $signature): void
76
{
77
+ /**
78
+ * By disabling formatting on signed objects, we prevent issues with invalid signatures later on
79
+ * at the cost of some whitespace taking up useless bytes in the outputted document.
80
+ */
81
+ $this->formatOutput = false;
82
$this->signature = $signature;
83
}
84
0 commit comments