Skip to content

Commit

Permalink
fix error message for php8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
magicWF committed Sep 2, 2023
1 parent 778b008 commit 88818c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Interpreter/Virtual/LookbackIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function next() : void {
* Lookback access
*/

function previous() {
function previous() : mixed {
return $this->previous;
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Interpreter/Virtual/TimestampIterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
*/
class TimestampIterator extends \IteratorIterator {
#[\ReturnTypeWillChange]
function current() {
function current() : mixed {
return parent::current()[0];
}
}
Expand Down

0 comments on commit 88818c2

Please sign in to comment.