From 087155dad0dd309dd3021244a23385635dae2682 Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Sun, 25 Jul 2021 14:14:25 +0200 Subject: Fix PHP 8.1 warnings --- it_pipe.class | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'it_pipe.class') diff --git a/it_pipe.class b/it_pipe.class index 94801c3..0c112d9 100644 --- a/it_pipe.class +++ b/it_pipe.class @@ -49,26 +49,31 @@ function __toString() # # Internal: Implement iterator # +#[ReturnTypeWillChange] function rewind() { $this->_position = 0; } +#[ReturnTypeWillChange] function next() { $this->_position++; } +#[ReturnTypeWillChange] function valid() { return array_key_exists($this->_position, $this->lines); } +#[ReturnTypeWillChange] function current() { return $this->lines[$this->_position]; } +#[ReturnTypeWillChange] function key() { return $this->_position; -- cgit v1.2.3