src/Message.php
static function exportTraceArgs($arg) {
        if(\is_array($arg)) {
            foreach($arg as $key => $a) {
                $arg[$key] = static::exportTraceArgs($a);
            }
        } elseif(\is_object($arg)) {
            return 'Object('.\get_class($arg).')#'.\spl_object_id($arg);
        }
        
        return $arg;
    }
static function exportTraceArgs($arg) {
        if(\is_array($arg)) {
            foreach($arg as $key => $a) {
                $arg[$key] = static::exportTraceArgs($a);
            }
        } elseif(\is_object($arg)) {
            return 'Object('.\get_class($arg).')#'.\spl_object_id($arg);
        }
        
        return $arg;
    }
Replaces objects with a string `Object(class_name)` to make them serializable.
@param mixed  $arg
@return mixed