Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenhaas authored Aug 30, 2022
1 parent 56d18c8 commit 4cb93c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PhpCollection/AbstractSequence.php
Original file line number Diff line number Diff line change
Expand Up @@ -348,12 +348,12 @@ public function exists($callable)
return false;
}

public function count()
public function count(): void
{
return count($this->elements);
}

public function getIterator()
public function getIterator(): Traversal
{
return new \ArrayIterator($this->elements ?: []);
}
Expand Down

0 comments on commit 4cb93c7

Please sign in to comment.