Doc-comments: Fix type errors

This commit is contained in:
Jakub Vrana
2025-03-28 13:15:14 +01:00
parent dc38a7ded3
commit 46f6a96c95
22 changed files with 60 additions and 64 deletions

View File

@@ -123,13 +123,13 @@ if (isset($_GET["imap"])) {
$this->fields = array_keys(idx($result, 0, array()));
}
function fetch_assoc(): array {
function fetch_assoc() {
$row = current($this->result);
next($this->result);
return $row;
}
function fetch_row(): array {
function fetch_row() {
$row = $this->fetch_assoc();
return ($row ? array_values($row) : false);
}