fix(formating)

This commit is contained in:
Anatoliy Poloz
2026-01-28 03:36:26 +03:00
parent 1723177949
commit b15d29f8e9
313 changed files with 1863 additions and 1533 deletions

View File

@@ -14,7 +14,7 @@ trait SignableData
{
// 1. Create a clone to represent the data-to-be-signed (without existing signatures)
$clone = clone $this;
// We explicitly set digestSignatures to null or empty for the signature calculation
// assuming the bank expects the "business payload" only.
// If the bank expects the field "digestSignatures": [] to be present in signed string,
@@ -40,7 +40,7 @@ trait SignableData
// Safest way is to reconstruct it.
$current = $this->digestSignatures->toCollection()->all();
$current[] = new DigestSignatureData($signature, 'cms');
$this->digestSignatures = new DataCollection(DigestSignatureData::class, $current);
return $this;