mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-30 17:24:16 +02:00
Merge pull request #3358 from Icinga/bugfix/getconfidentialtraceasstring-index-args
IcingaException::getConfidentialTraceAsString(): respect functions which don't take args "by definition"
This commit is contained in:
commit
2f2bde28fd
@ -88,13 +88,15 @@ class IcingaException extends Exception
|
|||||||
|
|
||||||
$trace[] = "{$frame['function']}(";
|
$trace[] = "{$frame['function']}(";
|
||||||
|
|
||||||
$args = array();
|
if (isset($frame['args'])) {
|
||||||
foreach ($frame['args'] as $arg) {
|
$args = array();
|
||||||
$type = gettype($arg);
|
foreach ($frame['args'] as $arg) {
|
||||||
$args[] = $type === 'object' ? 'Object(' . get_class($arg) . ')' : ucfirst($type);
|
$type = gettype($arg);
|
||||||
}
|
$args[] = $type === 'object' ? 'Object(' . get_class($arg) . ')' : ucfirst($type);
|
||||||
|
}
|
||||||
|
|
||||||
$trace[] = implode(', ', $args);
|
$trace[] = implode(', ', $args);
|
||||||
|
}
|
||||||
$trace[] = ")\n";
|
$trace[] = ")\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user