This commit is contained in:
Shish 2019-05-29 19:50:12 +01:00
parent bf473f6d51
commit da10859bb3

View file

@ -242,7 +242,7 @@ class Database
/** /**
* Execute an SQL query and return a single row. * Execute an SQL query and return a single row.
*/ */
public function get_row(string $query, array $args=[]): ?PDORow public function get_row(string $query, array $args=[]): ?array
{ {
$_start = microtime(true); $_start = microtime(true);
$row = $this->execute($query, $args)->fetch(); $row = $this->execute($query, $args)->fetch();
@ -385,7 +385,7 @@ class MockDatabase extends Database
{ {
return $this->_execute($query, $args); return $this->_execute($query, $args);
} }
public function get_row(string $query, array $args=[]): ?PDORow public function get_row(string $query, array $args=[]): ?array
{ {
return $this->_execute($query, $args); return $this->_execute($query, $args);
} }