mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
Utils: include spl_object_id() in stack traces
This commit is contained in:
parent
493977661f
commit
fadc96bb0e
@ -64,6 +64,7 @@ use function preg_grep;
|
||||
use function preg_match;
|
||||
use function preg_match_all;
|
||||
use function preg_replace;
|
||||
use function spl_object_id;
|
||||
use function str_pad;
|
||||
use function str_split;
|
||||
use function stripos;
|
||||
@ -412,7 +413,7 @@ final class Utils{
|
||||
|
||||
$params = implode(", ", array_map(function($value) use($maxStringLength) : string{
|
||||
if(is_object($value)){
|
||||
return "object " . self::getNiceClassName($value);
|
||||
return "object " . self::getNiceClassName($value) . "#" . spl_object_id($value);
|
||||
}
|
||||
if(is_array($value)){
|
||||
return "array[" . count($value) . "]";
|
||||
|
Loading…
x
Reference in New Issue
Block a user