Skip to content

Commit

Permalink
Merge pull request #260 from duckchip/missing-return-types-UpsertReso…
Browse files Browse the repository at this point in the history
…urceListResponse

added missing return types, which throws errors in php8.1
  • Loading branch information
gwendalaubert authored Mar 28, 2023
2 parents 5aeb139 + fdb4aa2 commit 58565f9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Stream/UpsertResourceListResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ public function __construct(
/**
* {@inheritdoc}
*/
public function current()
public function current(): array
{
return json_decode($this->line, true);
}

/**
* {@inheritdoc}
*/
public function next()
public function next(): void
{
$this->line = $this->streamReader->getNextLine($this->bodyStream);
$this->lineNumber++;
Expand All @@ -50,23 +50,23 @@ public function next()
/**
* {@inheritdoc}
*/
public function key()
public function key(): int
{
return $this->lineNumber;
}

/**
* {@inheritdoc}
*/
public function valid()
public function valid(): bool
{
return null !== $this->line;
}

/**
* {@inheritdoc}
*/
public function rewind()
public function rewind(): void
{
$this->bodyStream->rewind();
$this->lineNumber = 1;
Expand Down

0 comments on commit 58565f9

Please sign in to comment.