Skip to content

Commit

Permalink
fix: types
Browse files Browse the repository at this point in the history
  • Loading branch information
wilr committed Jul 3, 2023
1 parent 855664f commit b353817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ResultList.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ public function getResults()
/**
* @return ArrayIterator|Traversable
*/
public function getIterator()
public function getIterator(): Traversable
{
return new ArrayIterator($this->toArray());
}
Expand Down Expand Up @@ -402,7 +402,7 @@ public function offsetExists($offset): bool
/**
* @inheritdoc
*/
public function offsetGet($offset)
public function offsetGet(mixed $offset): mixed
{
$array = $this->toArray();
return isset($array[$offset]) ? $array[$offset] : null;
Expand Down

0 comments on commit b353817

Please sign in to comment.