Skip to content

Commit

Permalink
drivers: config in not passed via reference (BC break)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 17, 2018
1 parent e880631 commit 9660e40
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Dibi/Drivers/FirebirdDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
2 changes: 1 addition & 1 deletion src/Dibi/Drivers/MySqliDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
2 changes: 1 addition & 1 deletion src/Dibi/Drivers/OdbcDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
2 changes: 1 addition & 1 deletion src/Dibi/Drivers/OracleDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
2 changes: 1 addition & 1 deletion src/Dibi/Drivers/PdoDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
2 changes: 1 addition & 1 deletion src/Dibi/Drivers/PostgreDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
2 changes: 1 addition & 1 deletion src/Dibi/Drivers/SqliteDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down
2 changes: 1 addition & 1 deletion src/Dibi/Drivers/SqlsrvDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit 9660e40

Please sign in to comment.