Update objects to use __toString()
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user