IcingaException::getConfidentialTraceAsString(): respect functions which don't take args "by definition"
This commit is contained in:
parent
5d91ee8b3c
commit
2355224b05
|
@ -88,13 +88,15 @@ class IcingaException extends Exception
|
|||
|
||||
$trace[] = "{$frame['function']}(";
|
||||
|
||||
$args = array();
|
||||
foreach ($frame['args'] as $arg) {
|
||||
$type = gettype($arg);
|
||||
$args[] = $type === 'object' ? 'Object(' . get_class($arg) . ')' : ucfirst($type);
|
||||
}
|
||||
if (isset($frame['args'])) {
|
||||
$args = array();
|
||||
foreach ($frame['args'] as $arg) {
|
||||
$type = gettype($arg);
|
||||
$args[] = $type === 'object' ? 'Object(' . get_class($arg) . ')' : ucfirst($type);
|
||||
}
|
||||
|
||||
$trace[] = implode(', ', $args);
|
||||
$trace[] = implode(', ', $args);
|
||||
}
|
||||
$trace[] = ")\n";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue