1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-06 14:16:39 +02:00

drivers: config in not passed via reference (BC break)

This commit is contained in:
David Grudl
2018-09-17 13:35:01 +02:00
parent fe0e7510af
commit b7e467ecac
8 changed files with 8 additions and 8 deletions

View File

@@ -43,7 +43,7 @@ class FirebirdDriver implements Dibi\Driver
/** /**
* @throws Dibi\NotSupportedException * @throws Dibi\NotSupportedException
*/ */
public function __construct(array &$config) public function __construct(array $config)
{ {
if (!extension_loaded('interbase')) { if (!extension_loaded('interbase')) {
throw new Dibi\NotSupportedException("PHP extension 'interbase' is not loaded."); throw new Dibi\NotSupportedException("PHP extension 'interbase' is not loaded.");

View File

@@ -50,7 +50,7 @@ class MySqliDriver implements Dibi\Driver
/** /**
* @throws Dibi\NotSupportedException * @throws Dibi\NotSupportedException
*/ */
public function __construct(array &$config) public function __construct(array $config)
{ {
if (!extension_loaded('mysqli')) { if (!extension_loaded('mysqli')) {
throw new Dibi\NotSupportedException("PHP extension 'mysqli' is not loaded."); throw new Dibi\NotSupportedException("PHP extension 'mysqli' is not loaded.");

View File

@@ -40,7 +40,7 @@ class OdbcDriver implements Dibi\Driver
/** /**
* @throws Dibi\NotSupportedException * @throws Dibi\NotSupportedException
*/ */
public function __construct(array &$config) public function __construct(array $config)
{ {
if (!extension_loaded('odbc')) { if (!extension_loaded('odbc')) {
throw new Dibi\NotSupportedException("PHP extension 'odbc' is not loaded."); throw new Dibi\NotSupportedException("PHP extension 'odbc' is not loaded.");

View File

@@ -45,7 +45,7 @@ class OracleDriver implements Dibi\Driver
/** /**
* @throws Dibi\NotSupportedException * @throws Dibi\NotSupportedException
*/ */
public function __construct(array &$config) public function __construct(array $config)
{ {
if (!extension_loaded('oci8')) { if (!extension_loaded('oci8')) {
throw new Dibi\NotSupportedException("PHP extension 'oci8' is not loaded."); throw new Dibi\NotSupportedException("PHP extension 'oci8' is not loaded.");

View File

@@ -45,7 +45,7 @@ class PdoDriver implements Dibi\Driver
/** /**
* @throws Dibi\NotSupportedException * @throws Dibi\NotSupportedException
*/ */
public function __construct(array &$config) public function __construct(array $config)
{ {
if (!extension_loaded('pdo')) { if (!extension_loaded('pdo')) {
throw new Dibi\NotSupportedException("PHP extension 'pdo' is not loaded."); throw new Dibi\NotSupportedException("PHP extension 'pdo' is not loaded.");

View File

@@ -38,7 +38,7 @@ class PostgreDriver implements Dibi\Driver
/** /**
* @throws Dibi\NotSupportedException * @throws Dibi\NotSupportedException
*/ */
public function __construct(array &$config) public function __construct(array $config)
{ {
if (!extension_loaded('pgsql')) { if (!extension_loaded('pgsql')) {
throw new Dibi\NotSupportedException("PHP extension 'pgsql' is not loaded."); throw new Dibi\NotSupportedException("PHP extension 'pgsql' is not loaded.");

View File

@@ -40,7 +40,7 @@ class SqliteDriver implements Dibi\Driver
/** /**
* @throws Dibi\NotSupportedException * @throws Dibi\NotSupportedException
*/ */
public function __construct(array &$config) public function __construct(array $config)
{ {
if (!extension_loaded('sqlite3')) { if (!extension_loaded('sqlite3')) {
throw new Dibi\NotSupportedException("PHP extension 'sqlite3' is not loaded."); throw new Dibi\NotSupportedException("PHP extension 'sqlite3' is not loaded.");

View File

@@ -42,7 +42,7 @@ class SqlsrvDriver implements Dibi\Driver
/** /**
* @throws Dibi\NotSupportedException * @throws Dibi\NotSupportedException
*/ */
public function __construct(array &$config) public function __construct(array $config)
{ {
if (!extension_loaded('sqlsrv')) { if (!extension_loaded('sqlsrv')) {
throw new Dibi\NotSupportedException("PHP extension 'sqlsrv' is not loaded."); throw new Dibi\NotSupportedException("PHP extension 'sqlsrv' is not loaded.");