mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-22 19:06:35 +00:00
DataPacket: fixed var_dump() not showing private & protected subclass properties
This commit is contained in:
parent
025cb73bf5
commit
8d2e3894ef
@ -143,7 +143,7 @@ abstract class DataPacket extends NetworkBinaryStream{
|
||||
|
||||
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"))){
|
||||
|
Loading…
x
Reference in New Issue
Block a user