From 50e71030806500e7f90fe92806074579c69b96ba Mon Sep 17 00:00:00 2001 From: rxu Date: Thu, 29 May 2025 23:15:47 +0700 Subject: [PATCH] [ticket/17509] Output db tools error test PHPBB-17509 --- phpBB/phpbb/db/tools/doctrine.php | 2 +- phpBB/phpbb/install/helper/database.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/phpBB/phpbb/db/tools/doctrine.php b/phpBB/phpbb/db/tools/doctrine.php index bd3f71f83a..63de0c8832 100644 --- a/phpBB/phpbb/db/tools/doctrine.php +++ b/phpBB/phpbb/db/tools/doctrine.php @@ -478,7 +478,7 @@ class doctrine implements tools_interface catch (Exception $e) { // @todo: check if it makes sense to properly handle the exception - return false; + return $e->getMessage(); } } diff --git a/phpBB/phpbb/install/helper/database.php b/phpBB/phpbb/install/helper/database.php index 7f911ec999..5b1e74a807 100644 --- a/phpBB/phpbb/install/helper/database.php +++ b/phpBB/phpbb/install/helper/database.php @@ -405,6 +405,7 @@ class database } // Check if database version is supported + /** @psalm-suppress UndefinedInterfaceMethod */ $db_server_version = $doctrine_db->getWrappedConnection()->getServerVersion(); switch ($dbms) {