mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/16643] Fixes
PHPBB3-16643
This commit is contained in:
parent
0f7b89838a
commit
1ce97fe8ea
5 changed files with 11 additions and 14 deletions
|
@ -28,6 +28,7 @@
|
|||
"php": "^7.3 || ^8.0",
|
||||
"ext-json": "*",
|
||||
"ext-mbstring": "*",
|
||||
"ext-pdo": "*",
|
||||
"bantu/ini-get-wrapper": "~1.0",
|
||||
"chita/topological_sort": "^3.0",
|
||||
"composer/composer": "^2.0",
|
||||
|
|
|
@ -35,7 +35,7 @@ class connection_factory
|
|||
* @return Connection Doctrine DBAL connection.
|
||||
*
|
||||
* @throws runtime_exception If the database connection could not be established.
|
||||
* @throws InvalidArgumentException If $driver_name is not a valid phpBB database driver.
|
||||
* @throws InvalidArgumentException If the provided driver name is not a valid phpBB database driver.
|
||||
*/
|
||||
public static function get_connection(config_php_file $config) : Connection
|
||||
{
|
||||
|
@ -69,7 +69,7 @@ class connection_factory
|
|||
* @return Connection Doctrine DBAL connection.
|
||||
*
|
||||
* @throws runtime_exception If the database connection could not be established.
|
||||
* @throws InvalidArgumentException If $driver_name is not a valid phpBB database driver.
|
||||
* @throws InvalidArgumentException If $driver is not a valid phpBB database driver.
|
||||
*/
|
||||
public static function get_connection_from_params(
|
||||
string $driver,
|
||||
|
|
|
@ -29,14 +29,10 @@ use phpbb\install\helper\iohandler\iohandler_interface;
|
|||
*/
|
||||
abstract class database_task extends task_base
|
||||
{
|
||||
/**
|
||||
* @var Connection
|
||||
*/
|
||||
/** @var Connection */
|
||||
private $conn;
|
||||
|
||||
/**
|
||||
* @var iohandler_interface
|
||||
*/
|
||||
/** @var iohandler_interface */
|
||||
private $io;
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue