MAPG-78 [fix] add missing return types to some methods
This commit is contained in:
1 parent
d55caefda0
commit
675dd7cd07
3 files changed
+8
-8
No files matched your search
@@ -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 = [];
|
||||
|
||||
|
||||
Reference in new issue
Block a user