MAPG-78 [fix] add missing return types to some methods

This commit is contained in:
bence committed 2020-05-30 01:53:39 +02:00
1 parent d55caefda0
commit 675dd7cd07
3 files changed
+8 -8

No files matched your search

+3 -3
View File
@@ -12,17 +12,17 @@ class ResultSet implements IResultSet
$this->result = $result;
}
public function fetch(int $type = IResultSet::FETCH_ASSOC)
public function fetch(int $type = IResultSet::FETCH_ASSOC): ?array
{
return $this->result->fetch_array($this->convertFetchType($type));
}
public function fetchAll(int $type = IResultSet::FETCH_ASSOC)
public function fetchAll(int $type = IResultSet::FETCH_ASSOC): array
{
return $this->result->fetch_all($this->convertFetchType($type));
}
public function fetchOneColumn(string $valueName, string $keyName = null)
public function fetchOneColumn(string $valueName, string $keyName = null): array
{
$array = [];