1
1
Fork 0
mirror of https://code.mensbeam.com/MensBeam/Arsse.git synced 2025-04-24 06:15:51 +00:00

Adjust MySQL for PHP 8.4

This commit is contained in:
J. King 2024-12-27 13:12:34 -05:00
parent b306f0fc29
commit 9e5c841377

View file

@ -26,7 +26,7 @@ class Result extends \JKingWeb\Arsse\Db\AbstractResult {
// constructor/destructor
public function __construct($result, array $changes = [0,0], Statement $statement = null) {
public function __construct($result, array $changes = [0,0], ?Statement $statement = null) {
$this->st = $statement; //keeps the statement from being destroyed, invalidating the result set
$this->set = ($result instanceof \mysqli_result) ? $result : null;
$this->rows = $changes[0];