From 9660e400bfaa040bcbf554b29c0a4b347c8379dc Mon Sep 17 00:00:00 2001 From: David Grudl Date: Mon, 17 Sep 2018 13:35:01 +0200 Subject: [PATCH] drivers: config in not passed via reference (BC break) --- src/Dibi/Drivers/FirebirdDriver.php | 2 +- src/Dibi/Drivers/MySqliDriver.php | 2 +- src/Dibi/Drivers/OdbcDriver.php | 2 +- src/Dibi/Drivers/OracleDriver.php | 2 +- src/Dibi/Drivers/PdoDriver.php | 2 +- src/Dibi/Drivers/PostgreDriver.php | 2 +- src/Dibi/Drivers/SqliteDriver.php | 2 +- src/Dibi/Drivers/SqlsrvDriver.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Dibi/Drivers/FirebirdDriver.php b/src/Dibi/Drivers/FirebirdDriver.php index bf98fd2b9..cdec57e7a 100644 --- a/src/Dibi/Drivers/FirebirdDriver.php +++ b/src/Dibi/Drivers/FirebirdDriver.php @@ -43,7 +43,7 @@ class FirebirdDriver implements Dibi\Driver /** * @throws Dibi\NotSupportedException */ - public function __construct(array &$config) + public function __construct(array $config) { if (!extension_loaded('interbase')) { throw new Dibi\NotSupportedException("PHP extension 'interbase' is not loaded."); diff --git a/src/Dibi/Drivers/MySqliDriver.php b/src/Dibi/Drivers/MySqliDriver.php index 769555575..6ba8e6ae5 100644 --- a/src/Dibi/Drivers/MySqliDriver.php +++ b/src/Dibi/Drivers/MySqliDriver.php @@ -50,7 +50,7 @@ class MySqliDriver implements Dibi\Driver /** * @throws Dibi\NotSupportedException */ - public function __construct(array &$config) + public function __construct(array $config) { if (!extension_loaded('mysqli')) { throw new Dibi\NotSupportedException("PHP extension 'mysqli' is not loaded."); diff --git a/src/Dibi/Drivers/OdbcDriver.php b/src/Dibi/Drivers/OdbcDriver.php index 10b6d1ef5..8d4c93671 100644 --- a/src/Dibi/Drivers/OdbcDriver.php +++ b/src/Dibi/Drivers/OdbcDriver.php @@ -40,7 +40,7 @@ class OdbcDriver implements Dibi\Driver /** * @throws Dibi\NotSupportedException */ - public function __construct(array &$config) + public function __construct(array $config) { if (!extension_loaded('odbc')) { throw new Dibi\NotSupportedException("PHP extension 'odbc' is not loaded."); diff --git a/src/Dibi/Drivers/OracleDriver.php b/src/Dibi/Drivers/OracleDriver.php index 2f5d8e031..6acda56da 100644 --- a/src/Dibi/Drivers/OracleDriver.php +++ b/src/Dibi/Drivers/OracleDriver.php @@ -45,7 +45,7 @@ class OracleDriver implements Dibi\Driver /** * @throws Dibi\NotSupportedException */ - public function __construct(array &$config) + public function __construct(array $config) { if (!extension_loaded('oci8')) { throw new Dibi\NotSupportedException("PHP extension 'oci8' is not loaded."); diff --git a/src/Dibi/Drivers/PdoDriver.php b/src/Dibi/Drivers/PdoDriver.php index 66321c153..109829732 100644 --- a/src/Dibi/Drivers/PdoDriver.php +++ b/src/Dibi/Drivers/PdoDriver.php @@ -45,7 +45,7 @@ class PdoDriver implements Dibi\Driver /** * @throws Dibi\NotSupportedException */ - public function __construct(array &$config) + public function __construct(array $config) { if (!extension_loaded('pdo')) { throw new Dibi\NotSupportedException("PHP extension 'pdo' is not loaded."); diff --git a/src/Dibi/Drivers/PostgreDriver.php b/src/Dibi/Drivers/PostgreDriver.php index a0af40644..87d379584 100644 --- a/src/Dibi/Drivers/PostgreDriver.php +++ b/src/Dibi/Drivers/PostgreDriver.php @@ -38,7 +38,7 @@ class PostgreDriver implements Dibi\Driver /** * @throws Dibi\NotSupportedException */ - public function __construct(array &$config) + public function __construct(array $config) { if (!extension_loaded('pgsql')) { throw new Dibi\NotSupportedException("PHP extension 'pgsql' is not loaded."); diff --git a/src/Dibi/Drivers/SqliteDriver.php b/src/Dibi/Drivers/SqliteDriver.php index 2ea27a084..488017fef 100644 --- a/src/Dibi/Drivers/SqliteDriver.php +++ b/src/Dibi/Drivers/SqliteDriver.php @@ -40,7 +40,7 @@ class SqliteDriver implements Dibi\Driver /** * @throws Dibi\NotSupportedException */ - public function __construct(array &$config) + public function __construct(array $config) { if (!extension_loaded('sqlite3')) { throw new Dibi\NotSupportedException("PHP extension 'sqlite3' is not loaded."); diff --git a/src/Dibi/Drivers/SqlsrvDriver.php b/src/Dibi/Drivers/SqlsrvDriver.php index 57a093487..853c63d9e 100644 --- a/src/Dibi/Drivers/SqlsrvDriver.php +++ b/src/Dibi/Drivers/SqlsrvDriver.php @@ -42,7 +42,7 @@ class SqlsrvDriver implements Dibi\Driver /** * @throws Dibi\NotSupportedException */ - public function __construct(array &$config) + public function __construct(array $config) { if (!extension_loaded('sqlsrv')) { throw new Dibi\NotSupportedException("PHP extension 'sqlsrv' is not loaded.");