Mercurial > hg > rc2
diff program/lib/Roundcube/rcube_result_set.php @ 25:bea5a38be938
More cleaning up php8 Warnings/deprecations
| author | Charlie Root |
|---|---|
| date | Sat, 18 Oct 2025 12:24:31 -0400 |
| parents | 303b85d5b561 |
| children |
line wrap: on
line diff
--- a/program/lib/Roundcube/rcube_result_set.php Fri Oct 17 17:31:22 2025 -0400 +++ b/program/lib/Roundcube/rcube_result_set.php Sat Oct 18 12:24:31 2025 -0400 @@ -47,7 +47,11 @@ function iterate() { - return $this->records[$this->current++]; + $current = $this->current(); + + $this->current++; + + return $current; } function first() @@ -84,7 +88,7 @@ unset($this->records[$offset]); } - public function offsetGet($offset) + public function offsetGet(mixed $offset): mixed { return $this->records[$offset]; } @@ -98,7 +102,7 @@ function current(): mixed { - return $this->records[$this->current]; + return ($this->records[$this->current]??null); } function key(): mixed
