$args = '';
$file = $step['file'] . ':' . $step['line'];
$funct = (isset($step['class']) ? $step['class'] . '::' . $step['function'] : $step['function']);
-
+
if (isset($step['args']) AND is_array($step['args']))
{
// we need to do this so we don't get "Array to string conversion" notices
{
$step['args']["$id"] = 'Array';
}
+ else if (is_object($arg))
+ {
+ $step['args']["$id"] = get_class($arg);
+ }
}
$args = implode(', ', $step['args']);
}
-
+
$trace[] = "#$i $funct($args) called at [$file]";
}
-
+
return $trace;
}