Update objects to use __toString()

This commit is contained in:
Deon George
2020-06-24 22:37:14 +10:00
parent 358f28273c
commit 9936e839a4
15 changed files with 145 additions and 78 deletions

View File

@@ -143,7 +143,7 @@ class SignaturePacket extends Packet
$unhashed_subpackets = '';
foreach((array)$this->unhashed_subpackets as $p) {
$unhashed_subpackets .= $p->to_bytes();
$unhashed_subpackets .= (string)$p;
}
$body .= pack('n',strlen($unhashed_subpackets)).$unhashed_subpackets;
@@ -164,7 +164,7 @@ class SignaturePacket extends Packet
$hashed_subpackets = '';
foreach((array)$this->hashed_subpackets as $p) {
$hashed_subpackets .= $p->to_bytes();
$hashed_subpackets .= (string)$p;
}
$body .= pack('n',strlen($hashed_subpackets)).$hashed_subpackets;