Remove to_bytes() methods
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user