Skip to content

Commit 5e323db

Browse files
Merge pull request DesignPatternsPHP#496 from yariks0n/compatible_with_iterator
[f] compatible with Iterator
2 parents 5f022e4 + 9a5208c commit 5e323db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Behavioral/Iterator/BookList.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ public function key(): int
4646
return $this->currentIndex;
4747
}
4848

49-
public function next()
49+
public function next(): void
5050
{
5151
$this->currentIndex++;
5252
}
5353

54-
public function rewind()
54+
public function rewind(): void
5555
{
5656
$this->currentIndex = 0;
5757
}

0 commit comments

Comments
 (0)