aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/User/Database.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2024-09-15 21:50:11 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2024-09-15 21:50:11 +0200
commitc57e684e7b22a02c7017450d1fdaaec9afc83d62 (patch)
treee74b38562aaef75590dc5fc2c8e8eb749da7248e /lib/private/User/Database.php
parent614f9ec0a2fd3c6752e7da2a59063df09d3bdbff (diff)
downloadnextcloud-server-refactor/elvis.tar.gz
nextcloud-server-refactor/elvis.zip
fix: Handle null checks with the ?? operatorrefactor/elvis
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/private/User/Database.php')
-rw-r--r--lib/private/User/Database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/User/Database.php b/lib/private/User/Database.php
index 0035c4bbc17..2d3808e9dc7 100644
--- a/lib/private/User/Database.php
+++ b/lib/private/User/Database.php
@@ -64,7 +64,7 @@ class Database extends ABackend implements
public function __construct($eventDispatcher = null, $table = 'users') {
$this->cache = new CappedMemoryCache();
$this->table = $table;
- $this->eventDispatcher = $eventDispatcher ?: \OCP\Server::get(IEventDispatcher::class);
+ $this->eventDispatcher = $eventDispatcher ?? \OCP\Server::get(IEventDispatcher::class);
}
/**