summaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Log/ExceptionSerializer.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Log/ExceptionSerializer.php b/lib/private/Log/ExceptionSerializer.php
index 97541097451..dab134b26a4 100644
--- a/lib/private/Log/ExceptionSerializer.php
+++ b/lib/private/Log/ExceptionSerializer.php
@@ -237,11 +237,11 @@ class ExceptionSerializer {
];
}
- $data = get_object_vars($arg);
- $data['__class__'] = get_class($arg);
+ $objectInfo = [ '__class__' => get_class($arg) ];
+ $objectVars = get_object_vars($arg);
return array_map(function ($arg) use ($nestingLevel) {
return $this->encodeArg($arg, $nestingLevel - 1);
- }, $data);
+ }, array_merge($objectInfo, $objectVars));
}
if (is_array($arg)) {