@@ -32,7 +32,7 @@ class MysqliDb
32
32
* MySQLi instances
33
33
* @var mysqli[]
34
34
*/
35
- protected $ _mysqli = [] ;
35
+ protected $ _mysqli = array () ;
36
36
37
37
/**
38
38
* The SQL query to be prepared and executed
@@ -211,7 +211,7 @@ class MysqliDb
211
211
/**
212
212
* @var array connections settings [profile_name=>[same_as_contruct_args]]
213
213
*/
214
- protected $ connectionsSettings = [] ;
214
+ protected $ connectionsSettings = array () ;
215
215
/**
216
216
* @var string the name of a default (main) mysqli connection
217
217
*/
@@ -240,15 +240,15 @@ public function __construct($host = null, $username = null, $password = null, $d
240
240
}
241
241
}
242
242
243
- $ this ->addConnection ('default ' , [
243
+ $ this ->addConnection ('default ' , array (
244
244
'host ' => $ host ,
245
245
'username ' => $ username ,
246
246
'password ' => $ password ,
247
247
'db ' => $ db ,
248
248
'port ' => $ port ,
249
249
'socket ' => $ socket ,
250
250
'charset ' => $ charset
251
- ] );
251
+ ) );
252
252
253
253
if ($ isSubQuery ) {
254
254
$ this ->isSubQuery = true ;
@@ -345,8 +345,8 @@ public function disconnect($connection = 'default')
345
345
*/
346
346
public function addConnection ($ name , array $ params )
347
347
{
348
- $ this ->connectionsSettings [$ name ] = [] ;
349
- foreach ([ 'host ' , 'username ' , 'password ' , 'db ' , 'port ' , 'socket ' , 'charset ' ] as $ k ) {
348
+ $ this ->connectionsSettings [$ name ] = array () ;
349
+ foreach (array ( 'host ' , 'username ' , 'password ' , 'db ' , 'port ' , 'socket ' , 'charset ' ) as $ k ) {
350
350
$ prm = isset ($ params [$ k ]) ? $ params [$ k ] : null ;
351
351
352
352
if ($ k == 'host ' ) {
@@ -2161,7 +2161,7 @@ public static function subQuery($subQueryAlias = "")
2161
2161
public function copy ()
2162
2162
{
2163
2163
$ copy = unserialize (serialize ($ this ));
2164
- $ copy ->_mysqli = [] ;
2164
+ $ copy ->_mysqli = array () ;
2165
2165
return $ copy ;
2166
2166
}
2167
2167
0 commit comments