1
0
mirror of https://github.com/beestat/app.git synced 2025-07-09 03:04:07 -04:00

Minor changes for PHP8

This commit is contained in:
Jon Ziebell 2023-01-21 22:53:50 -05:00
parent 635ec21b44
commit 5ed2424b59

View File

@ -354,8 +354,7 @@ final class database extends \mysqli {
*
* @return mixed The result directly from $mysqli->query.
*/
public function query($query, $resultmode = null) {
// public function query($query, $result_mode = \MYSQLI_STORE_RESULT): \mysqli_result|bool {
public function query($query, $result_mode = \MYSQLI_STORE_RESULT): \mysqli_result|bool {
// If this was an insert, update or delete, start a transaction
$query_type = substr(trim($query), 0, 6);
if(