mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
Merge pull request #36167 from nextcloud/backport/35970/stable25
[stable25] Improve exception serializing
This commit is contained in:
commit
bcbec0af90
1 changed files with 3 additions and 3 deletions
|
|
@ -223,13 +223,13 @@ class ExceptionSerializer {
|
|||
}
|
||||
|
||||
private function encodeTrace($trace) {
|
||||
$filteredTrace = $this->filterTrace($trace);
|
||||
return array_map(function (array $line) {
|
||||
$trace = array_map(function (array $line) {
|
||||
if (isset($line['args'])) {
|
||||
$line['args'] = array_map([$this, 'encodeArg'], $line['args']);
|
||||
}
|
||||
return $line;
|
||||
}, $filteredTrace);
|
||||
}, $trace);
|
||||
return $this->filterTrace($trace);
|
||||
}
|
||||
|
||||
private function encodeArg($arg, $nestingLevel = 5) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue