From 88818c23b2f315471c4954fdd9ad2f8aa4f38a5e Mon Sep 17 00:00:00 2001 From: magicWF Date: Sun, 3 Sep 2023 00:58:23 +0200 Subject: [PATCH] fix error message for php8.2 --- lib/Interpreter/Virtual/LookbackIterator.php | 2 +- lib/Interpreter/Virtual/TimestampIterator.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Interpreter/Virtual/LookbackIterator.php b/lib/Interpreter/Virtual/LookbackIterator.php index 11562b43..39efc936 100644 --- a/lib/Interpreter/Virtual/LookbackIterator.php +++ b/lib/Interpreter/Virtual/LookbackIterator.php @@ -49,7 +49,7 @@ function next() : void { * Lookback access */ - function previous() { + function previous() : mixed { return $this->previous; } } diff --git a/lib/Interpreter/Virtual/TimestampIterator.php b/lib/Interpreter/Virtual/TimestampIterator.php index bffbb1fa..ad01ea94 100644 --- a/lib/Interpreter/Virtual/TimestampIterator.php +++ b/lib/Interpreter/Virtual/TimestampIterator.php @@ -28,7 +28,7 @@ */ class TimestampIterator extends \IteratorIterator { #[\ReturnTypeWillChange] - function current() { + function current() : mixed { return parent::current()[0]; } }