mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-29 21:10:31 +02:00
[ticket/17509] Output db tools error test
PHPBB-17509
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user