Skip to content

Commit 58565f9

Browse files
Merge pull request #260 from duckchip/missing-return-types-UpsertResourceListResponse
added missing return types, which throws errors in php8.1
2 parents 5aeb139 + fdb4aa2 commit 58565f9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Stream/UpsertResourceListResponse.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ public function __construct(
3333
/**
3434
* {@inheritdoc}
3535
*/
36-
public function current()
36+
public function current(): array
3737
{
3838
return json_decode($this->line, true);
3939
}
4040

4141
/**
4242
* {@inheritdoc}
4343
*/
44-
public function next()
44+
public function next(): void
4545
{
4646
$this->line = $this->streamReader->getNextLine($this->bodyStream);
4747
$this->lineNumber++;
@@ -50,23 +50,23 @@ public function next()
5050
/**
5151
* {@inheritdoc}
5252
*/
53-
public function key()
53+
public function key(): int
5454
{
5555
return $this->lineNumber;
5656
}
5757

5858
/**
5959
* {@inheritdoc}
6060
*/
61-
public function valid()
61+
public function valid(): bool
6262
{
6363
return null !== $this->line;
6464
}
6565

6666
/**
6767
* {@inheritdoc}
6868
*/
69-
public function rewind()
69+
public function rewind(): void
7070
{
7171
$this->bodyStream->rewind();
7272
$this->lineNumber = 1;

0 commit comments

Comments
 (0)