Utils: include spl_object_id() in stack traces

This commit is contained in:
Dylan K. Taylor 2021-06-02 21:34:19 +01:00
parent 493977661f
commit fadc96bb0e
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D

View File

@ -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) . "]";