mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
Constructor of class DatabaseResult_Mysqli has an unused parameter $resultless
This commit is contained in:
parent
c327e298d8
commit
3d0d2bf51d
1 changed files with 3 additions and 3 deletions
|
|
@ -12,7 +12,7 @@ class DatabaseResult_Mysqli extends DatabaseResult_Abstract
|
|||
/** @var mysqli_result */
|
||||
protected $q;
|
||||
|
||||
function __construct(mysqli $dbh, string $query, bool $resultless = false)
|
||||
function __construct(mysqli $dbh, string $query)
|
||||
{
|
||||
$this->q = $dbh->query($query); //throws mysqli_sql_exception
|
||||
}
|
||||
|
|
@ -105,7 +105,7 @@ class Database_Mysqli extends Database_Abstract
|
|||
$this->_dq($query, $values, true);
|
||||
}
|
||||
|
||||
private function _dq(string $query, ?array $values = null, bool $resultless = false) : DatabaseResult_Abstract
|
||||
private function _dq(string $query, ?array $values = null) : DatabaseResult_Abstract
|
||||
{
|
||||
if (null !== $values && sizeof($values) > 0)
|
||||
{
|
||||
|
|
@ -123,7 +123,7 @@ class Database_Mysqli extends Database_Abstract
|
|||
$query .= $m[$i];
|
||||
}
|
||||
$this->setLastQuery($query);
|
||||
return new DatabaseResult_Mysqli($this->dbh, $query, $resultless);
|
||||
return new DatabaseResult_Mysqli($this->dbh, $query);
|
||||
}
|
||||
|
||||
function affected(): int
|
||||
|
|
|
|||
Loading…
Reference in a new issue