Remove to_bytes() methods

This commit is contained in:
Deon George
2020-06-24 22:46:20 +10:00
parent 9936e839a4
commit fc914b727d
6 changed files with 8 additions and 20 deletions

View File

@@ -51,19 +51,19 @@ class CompressedDataPacket extends Packet implements \IteratorAggregate, \ArrayA
switch($this->algorithm) {
case 0:
$body .= $this->data->to_bytes();
$body .= (string)$this->data;
break;
case 1:
$body .= gzdeflate($this->data->to_bytes());
$body .= gzdeflate((string)$this->data);
break;
case 2:
$body .= gzcompress($this->data->to_bytes());
$body .= gzcompress((string)$this->data);
break;
case 3:
$body .= bzcompress($this->data->to_bytes());
$body .= bzcompress((string)$this->data);
break;
default: