[ticket/17509] Output db tools error test

PHPBB-17509
This commit is contained in:
rxu 2025-05-29 23:15:47 +07:00
parent d8bbe3e58c
commit 50e7103080
No known key found for this signature in database
GPG key ID: 955F0567380E586A
2 changed files with 2 additions and 1 deletions

View file

@ -478,7 +478,7 @@ class doctrine implements tools_interface
catch (Exception $e) catch (Exception $e)
{ {
// @todo: check if it makes sense to properly handle the exception // @todo: check if it makes sense to properly handle the exception
return false; return $e->getMessage();
} }
} }

View file

@ -405,6 +405,7 @@ class database
} }
// Check if database version is supported // Check if database version is supported
/** @psalm-suppress UndefinedInterfaceMethod */
$db_server_version = $doctrine_db->getWrappedConnection()->getServerVersion(); $db_server_version = $doctrine_db->getWrappedConnection()->getServerVersion();
switch ($dbms) switch ($dbms)
{ {