@@ -224,7 +224,7 @@ public function fullJoin(
224224 *
225225 * @return bool|string - false for error
226226 */
227- public function union ($ table = '' , $ columnFields = '* ' , ...$ conditions );
227+ public function union (string $ table = null , $ columnFields = '* ' , ...$ conditions );
228228
229229 /**
230230 * Returns an `UNION ALL` SELECT SQL string, given the
@@ -250,7 +250,7 @@ public function union($table = '', $columnFields = '*', ...$conditions);
250250 *
251251 * @return bool|string - false for error
252252 */
253- public function unionAll ($ table = '' , $ columnFields = '* ' , ...$ conditions );
253+ public function unionAll (string $ table = null , $ columnFields = '* ' , ...$ conditions );
254254
255255 /**
256256 * Specifies an ordering for the query results.
@@ -332,7 +332,7 @@ public function where( ...$whereKeyArray);
332332 *
333333 * @return mixed result set - see docs for more details, or false for error
334334 */
335- public function selecting ($ table = '' , $ columnFields = '* ' , ...$ conditions );
335+ public function selecting (string $ table = null , $ columnFields = '* ' , ...$ conditions );
336336
337337 /**
338338 * Does an create select statement by calling selecting method
@@ -344,7 +344,7 @@ public function selecting($table = '', $columnFields = '*', ...$conditions);
344344 *
345345 * @return mixed bool/result - false for error
346346 */
347- public function create_select ($ newTable , $ fromColumns , $ oldTable = null , ...$ fromWhere );
347+ public function create_select (string $ newTable , $ fromColumns , $ oldTable = null , ...$ fromWhere );
348348
349349 /**
350350 * Does an select into statement by calling selecting method
@@ -355,7 +355,7 @@ public function create_select($newTable, $fromColumns, $oldTable = null, ...$fro
355355 *
356356 * @return mixed bool/result - false for error
357357 */
358- public function select_into ($ newTable , $ fromColumns , $ oldTable = null , ...$ fromWhere );
358+ public function select_into (string $ newTable , $ fromColumns , $ oldTable = null , ...$ fromWhere );
359359
360360 /**
361361 * Does an update query with an array, by conditional operator array
@@ -365,29 +365,29 @@ public function select_into($newTable, $fromColumns, $oldTable = null, ...$fromW
365365 *
366366 * @return mixed bool/results - false for error
367367 */
368- public function update ($ table = '' , $ keyAndValue , ...$ whereKeys );
368+ public function update (string $ table = null , $ keyAndValue , ...$ whereKeys );
369369
370370 /**
371371 * Helper does the actual delete query with an array
372372 * @return mixed bool/results - false for error
373373 */
374- public function delete ($ table = '' , ...$ whereKeys );
374+ public function delete (string $ table = null , ...$ whereKeys );
375375
376376 /**
377377 * Does an replace query with an array
378378 * @param $table, - database table to access
379379 * @param $keyAndValue - table fields, assoc array with key = value (doesn't need escaped)
380380 * @return mixed bool/id of replaced record, or false for error
381381 */
382- public function replace ($ table = '' , $ keyAndValue );
382+ public function replace (string $ table = null , $ keyAndValue );
383383
384384 /**
385385 * Does an insert query with an array
386386 * @param $table, - database table to access
387387 * @param $keyAndValue - table fields, assoc array with key = value (doesn't need escaped)
388388 * @return mixed bool/id of inserted record, or false for error
389389 */
390- public function insert ($ table = '' , $ keyAndValue );
390+ public function insert (string $ table = null , $ keyAndValue );
391391
392392 /**
393393 * Does an insert into select statement by calling insert method helper then selecting method
@@ -397,7 +397,8 @@ public function insert($table = '', $keyAndValue);
397397 *
398398 * @return mixed bool/id of inserted record, or false for error
399399 */
400- public function insert_select ($ toTable = '' , $ toColumns = '* ' , $ fromTable = null , $ fromColumns = '* ' , ...$ fromWhere );
400+ public function insert_select (
401+ string $ toTable = null , $ toColumns = '* ' , $ fromTable = null , $ fromColumns = '* ' , ...$ fromWhere );
401402
402403 /**
403404 * Creates an database table and columns, by either:
0 commit comments