Skip to content

Commit 7384502

Browse files
Nyholmderrabus
andauthored
Fixed PHP deprecation (#47)
* Fixed PHP deprecation * Update src/Issue/IssueCollection.php Co-authored-by: Alexander M. Turek <[email protected]> * Update src/Issue/IssueCollection.php Co-authored-by: Alexander M. Turek <[email protected]> Co-authored-by: Alexander M. Turek <[email protected]>
1 parent f750edd commit 7384502

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Issue/IssueCollection.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,32 +15,32 @@ public function addIssue(Issue $issue)
1515
$this->issues[] = $issue;
1616
}
1717

18-
public function current()
18+
public function current(): Issue
1919
{
2020
return $this->issues[$this->key];
2121
}
2222

23-
public function next()
23+
public function next(): void
2424
{
2525
++$this->key;
2626
}
2727

28-
public function key()
28+
public function key(): int
2929
{
3030
return $this->key;
3131
}
3232

33-
public function valid()
33+
public function valid(): bool
3434
{
3535
return isset($this->issues[$this->key()]);
3636
}
3737

38-
public function rewind()
38+
public function rewind(): void
3939
{
4040
$this->key = 0;
4141
}
4242

43-
public function count()
43+
public function count(): int
4444
{
4545
return count($this->issues);
4646
}

0 commit comments

Comments
 (0)