diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2022-02-08 16:32:52 +0300 |
---|---|---|
committer | Carl Schwan (Rebase PR Action) <carl@carlschwan.eu> | 2022-02-10 18:30:24 +0300 |
commit | 64411c34a56419cb152a0e9d9b3f80eaa31d34d2 (patch) | |
tree | 24b175df2ba160436ab6fac9beda3071825714bb /lib | |
parent | b78a526be7bd89d231a1a88d53864b5b9011f429 (diff) |
Fix return type for LogIterator::current
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Log/LogIterator.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Log/LogIterator.php b/lib/Log/LogIterator.php index f8d6532..d8d7c87 100644 --- a/lib/Log/LogIterator.php +++ b/lib/Log/LogIterator.php @@ -72,7 +72,11 @@ class LogIterator implements \Iterator { $this->currentKey = 0; } - public function current(): mixed { + /** + * @return mixed + */ + #[\ReturnTypeWillChange] + public function current() { $entry = json_decode($this->lastLine, true); if ($this->dateFormat !== \DateTime::ATOM) { if (isset($entry['time'])) { |