Skip to content

Commit

Permalink
Merge pull request #32 from FranMoraton/feature/add-iterator-and-coun…
Browse files Browse the repository at this point in the history
…table-type-to-collections

add iterator and countable type hint to collection
  • Loading branch information
calmohallag authored May 10, 2022
2 parents 0cb93d9 + 1a64277 commit dab09a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Domain/Model/ValueObject/CollectionValueObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public static function from(array $items): static
return new static($items);
}

public function current()
public function current(): mixed
{
return \current($this->items);
}
Expand All @@ -27,7 +27,7 @@ public function next(): void
\next($this->items);
}

public function key()
public function key(): string|int|null
{
return \key($this->items);
}
Expand Down

0 comments on commit dab09a7

Please sign in to comment.