From 6086aa7b69267799c2d9e9dc075d6d2b08561877 Mon Sep 17 00:00:00 2001 From: Josh Date: Tue, 24 Sep 2024 09:42:38 -0400 Subject: [PATCH] fix: failure when using sqlite3 Fixes #171 Signed-off-by: Josh --- lib/Categories/Database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Categories/Database.php b/lib/Categories/Database.php index 0fd76b3..a0637f4 100644 --- a/lib/Categories/Database.php +++ b/lib/Categories/Database.php @@ -133,7 +133,7 @@ protected function databaseSize() { $database_size = filesize($this->config->getSystemValue('dbhost')); } else { /** @psalm-suppress UndefinedInterfaceMethod */ - $params = $this->connection->getParams(); + $params = $this->connection->getInner()->getParams(); if (file_exists($params['path'])) { $database_size = filesize($params['path']); }