diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-08-05 15:00:41 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-08-05 17:36:15 +0200 |
commit | b235a854d3d78d0aaf80b6b3920175c5b8d90c1d (patch) | |
tree | 1b098fa6b8848ec29d446eb5619063faa310eb30 /lib/private/Log | |
parent | 950de74d1da49a95f97423bc6add1aa9216db1dd (diff) | |
download | nextcloud-server-b235a854d3d78d0aaf80b6b3920175c5b8d90c1d.tar.gz nextcloud-server-b235a854d3d78d0aaf80b6b3920175c5b8d90c1d.zip |
Always list the class of an object first
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Log')
-rw-r--r-- | lib/private/Log/ExceptionSerializer.php | 6 |
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)) { |