Skip to content

Commit 100e630

Browse files
committed
fix MatrixBufferIterator php8.1 warning
1 parent 7944ed2 commit 100e630

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/MatrixBufferIterator.php

+5-5
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function getCurrentIndex()
2525
return $this->current;
2626
}
2727

28-
public function current()
28+
public function current() : mixed
2929
{
3030
if($this->endOfItem) {
3131
throw new RangeException('End of buffer');
@@ -39,12 +39,12 @@ public function current()
3939
return $pos;
4040
}
4141

42-
public function key()
42+
public function key() : mixed
4343
{
4444
return null;
4545
}
4646

47-
public function next()
47+
public function next() : void
4848
{
4949
if($this->endOfItem)
5050
return;
@@ -61,13 +61,13 @@ public function next()
6161
$this->endOfItem = true;
6262
}
6363

64-
public function rewind()
64+
public function rewind() : void
6565
{
6666
$this->current = array_fill(0,count($this->shape),0);
6767
$this->endOfItem = false;
6868
}
6969

70-
public function valid()
70+
public function valid() : bool
7171
{
7272
if($this->endOfItem)
7373
return false;

0 commit comments

Comments
 (0)