phpstan 0.12.64

This commit is contained in:
Dylan K. Taylor
2020-12-23 20:04:40 +00:00
parent 5431807e43
commit 135f1c95e4
3 changed files with 9 additions and 9 deletions

View File

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