diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-09-15 21:50:11 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2024-09-15 21:50:11 +0200 |
commit | c57e684e7b22a02c7017450d1fdaaec9afc83d62 (patch) | |
tree | e74b38562aaef75590dc5fc2c8e8eb749da7248e /lib/private/Log | |
parent | 614f9ec0a2fd3c6752e7da2a59063df09d3bdbff (diff) | |
download | nextcloud-server-c57e684e7b22a02c7017450d1fdaaec9afc83d62.tar.gz nextcloud-server-c57e684e7b22a02c7017450d1fdaaec9afc83d62.zip |
fix: Handle null checks with the ?? operatorrefactor/elvis
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/Log')
-rw-r--r-- | lib/private/Log/LogDetails.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Log/LogDetails.php b/lib/private/Log/LogDetails.php index b3ae23a3770..bd18eb983db 100644 --- a/lib/private/Log/LogDetails.php +++ b/lib/private/Log/LogDetails.php @@ -37,7 +37,7 @@ abstract class LogDetails { $url = ($request->getRequestUri() !== '') ? $request->getRequestUri() : '--'; $method = is_string($request->getMethod()) ? $request->getMethod() : '--'; if ($this->config->getValue('installed', false)) { - $user = \OC_User::getUser() ?: '--'; + $user = \OC_User::getUser() ?? '--'; } else { $user = '--'; } |