Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/logreader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2022-02-08 16:32:52 +0300
committerCarl Schwan (Rebase PR Action) <carl@carlschwan.eu>2022-02-10 18:30:24 +0300
commit64411c34a56419cb152a0e9d9b3f80eaa31d34d2 (patch)
tree24b175df2ba160436ab6fac9beda3071825714bb /lib
parentb78a526be7bd89d231a1a88d53864b5b9011f429 (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.php6
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'])) {