From 02fd4c778f2a021c1a3ff5fe44088df980e3b54f 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 f1004dc..512a0f8 100644 --- a/lib/Categories/Database.php +++ b/lib/Categories/Database.php @@ -119,7 +119,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']); }