diff options
author | Christian Schneider | 2021-07-25 14:14:25 +0200 |
---|---|---|
committer | Christian Schneider | 2021-07-25 14:14:25 +0200 |
commit | 087155dad0dd309dd3021244a23385635dae2682 (patch) | |
tree | 55640af1374c928d48bd72a5e25e17746af201bc /it_pipe.class | |
parent | f4512248dfaee789c24ae7cf506f89b3d81e19e8 (diff) | |
download | itools-087155dad0dd309dd3021244a23385635dae2682.tar.gz itools-087155dad0dd309dd3021244a23385635dae2682.tar.bz2 itools-087155dad0dd309dd3021244a23385635dae2682.zip |
Fix PHP 8.1 warnings
Diffstat (limited to 'it_pipe.class')
-rw-r--r-- | it_pipe.class | 5 |
1 files changed, 5 insertions, 0 deletions
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; |