@@ -248,7 +248,7 @@ public function delete($table, $where = null, $parameters = [])
248248 */
249249 public function drop ($ tables )
250250 {
251- $ this ->execute ('DROP TABLE ' . implode (', ' , array_map ([ $ this , ' quoteName ' ] , (array ) $ tables )));
251+ $ this ->execute ('DROP TABLE ' . implode (', ' , array_map ($ this -> quoteName (...) , (array ) $ tables )));
252252 }
253253
254254
@@ -825,7 +825,7 @@ public function insert($table, array $values)
825825 $ subKeys = array_keys ($ actualValues [0 ]);
826826
827827 // prefix with table name
828- array_walk ($ subKeys , [ $ this , ' prefixTableNames ' ] , $ table );
828+ array_walk ($ subKeys , $ this -> prefixTableNames (...) , $ table );
829829
830830 // build query
831831 $ query .= implode (', ' , $ subKeys ) . ') VALUES ' ;
@@ -882,7 +882,7 @@ public function insert($table, array $values)
882882 $ numFields = count ($ actualValues );
883883
884884 // prefix with table name
885- array_walk ($ keys , [ $ this , ' prefixTableNames ' ] , $ table );
885+ array_walk ($ keys , $ this -> prefixTableNames (...) , $ table );
886886
887887 // build query
888888 $ query .= implode (', ' , $ keys ) . ') VALUES ( ' ;
@@ -955,7 +955,7 @@ public function optimize($tables)
955955 $ tables = (func_num_args () == 1 ) ? (array ) $ tables : func_get_args ();
956956
957957 // build & execute query
958- return $ this ->getRecords ('OPTIMIZE TABLE ' . implode (', ' , array_map ([ $ this , ' quoteName ' ] , $ tables )));
958+ return $ this ->getRecords ('OPTIMIZE TABLE ' . implode (', ' , array_map ($ this -> quoteName (...) , $ tables )));
959959 }
960960
961961
@@ -1145,7 +1145,7 @@ public function update($table, array $values, $where = null, $parameters = [])
11451145 foreach ($ parameters as $ key => $ value )
11461146 {
11471147 // key such as ':id' starting
1148- if (str_starts_with ($ key , ': ' ))
1148+ if (str_starts_with (( string ) $ key , ': ' ))
11491149 {
11501150 $ namedParameters = true ;
11511151 break ;
0 commit comments