diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-21 11:30:20 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-11-21 11:30:20 +0100 |
commit | 8a16e7e8a171d4f456fa70d25dfa85fb044d0029 (patch) | |
tree | ffa493c80e4e7ee7551a5bca61134459fc4f9a4f /lib | |
parent | 378630f8a092c9148d802b9662358346af2cef0f (diff) | |
download | nextcloud-server-8a16e7e8a171d4f456fa70d25dfa85fb044d0029.tar.gz nextcloud-server-8a16e7e8a171d4f456fa70d25dfa85fb044d0029.zip |
Fix more psalm issues in OC\DB
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/DB/Connection.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/DB/Connection.php b/lib/private/DB/Connection.php index 3173a65d875..ceaffbcfa9a 100644 --- a/lib/private/DB/Connection.php +++ b/lib/private/DB/Connection.php @@ -50,12 +50,13 @@ use Doctrine\DBAL\Result; use Doctrine\DBAL\Schema\Schema; use Doctrine\DBAL\Statement; use OCP\DB\QueryBuilder\IQueryBuilder; +use OCP\Diagnostics\IEventLogger; use OCP\IRequestId; use OCP\PreConditionNotMetException; +use OCP\Profiler\IProfiler; use OC\DB\QueryBuilder\QueryBuilder; use OC\SystemConfig; use Psr\Log\LoggerInterface; -use OCP\Profiler\IProfiler; class Connection extends \Doctrine\DBAL\Connection { /** @var string */ @@ -129,8 +130,9 @@ class Connection extends \Doctrine\DBAL\Connection { } // Only trigger the event logger for the initial connect call - $eventLogger = \OC::$server->getEventLogger(); + $eventLogger = \OC::$server->get(IEventLogger::class); $eventLogger->start('connect:db', 'db connection opened'); + /** @psalm-suppress InternalMethod */ $status = parent::connect(); $eventLogger->end('connect:db'); |