Merge branch 'next-minor'

This commit is contained in:
Dylan K. Taylor
2019-11-29 12:06:27 +00:00
3 changed files with 4 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ abstract class DataPacket extends NetworkBinaryStream implements Packet{
public function __debugInfo(){
$data = [];
foreach($this as $k => $v){
foreach((array) $this as $k => $v){
if($k === "buffer" and is_string($v)){
$data[$k] = bin2hex($v);
}elseif(is_string($v) or (is_object($v) and method_exists($v, "__toString"))){