mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-05-14 17:59:41 +00:00
Merge remote-tracking branch 'origin/stable' into drew-1.13
This commit is contained in:
commit
ba39327b28
@ -143,7 +143,7 @@ abstract class DataPacket extends NetworkBinaryStream{
|
|||||||
|
|
||||||
public function __debugInfo(){
|
public function __debugInfo(){
|
||||||
$data = [];
|
$data = [];
|
||||||
foreach($this as $k => $v){
|
foreach((array) $this as $k => $v){
|
||||||
if($k === "buffer" and is_string($v)){
|
if($k === "buffer" and is_string($v)){
|
||||||
$data[$k] = bin2hex($v);
|
$data[$k] = bin2hex($v);
|
||||||
}elseif(is_string($v) or (is_object($v) and method_exists($v, "__toString"))){
|
}elseif(is_string($v) or (is_object($v) and method_exists($v, "__toString"))){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user