Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5e323db

Browse files
Merge pull requestDesignPatternsPHP#496 from yariks0n/compatible_with_iterator
[f] compatible with Iterator
2 parents5f022e4 +9a5208c commit5e323db

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-
publicfunctionnext()
49+
publicfunctionnext():void
5050
{
5151
$this->currentIndex++;
5252
}
5353

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp