Skip to content

Commit

Permalink
Merge pull request #129 from HugoHeneault/patch-1
Browse files Browse the repository at this point in the history
ResponseAccess::current() should be compatible with Iterator::current()
  • Loading branch information
gnikyt committed Sep 6, 2022
2 parents 7354807 + 128c15b commit d17d42e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ResponseAccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function offsetExists($offset): bool
*
* @return mixed
*/
public function offsetGet($offset)
public function offsetGet($offset): mixed
{
if ($offset === 'container') {
return $this->container;
Expand Down Expand Up @@ -152,7 +152,7 @@ public function rewind(): void
*
* @return mixed
*/
public function current()
public function current(): mixed
{
if (is_array($this->container[$this->position])) {
return new static($this->container[$this->position]);
Expand Down

0 comments on commit d17d42e

Please sign in to comment.