From 5dfe54b5f57f2fcf3c7f512cc3cb7b318373faaf Mon Sep 17 00:00:00 2001 From: Tristan Hofman Date: Tue, 28 Mar 2023 11:04:15 +0200 Subject: [PATCH] added missing return types, which throws errors in php8.1 --- src/Stream/UpsertResourceListResponse.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Stream/UpsertResourceListResponse.php b/src/Stream/UpsertResourceListResponse.php index cfba42c..a2b0885 100644 --- a/src/Stream/UpsertResourceListResponse.php +++ b/src/Stream/UpsertResourceListResponse.php @@ -33,7 +33,7 @@ public function __construct( /** * {@inheritdoc} */ - public function current() + public function current(): array { return json_decode($this->line, true); } @@ -41,7 +41,7 @@ public function current() /** * {@inheritdoc} */ - public function next() + public function next(): void { $this->line = $this->streamReader->getNextLine($this->bodyStream); $this->lineNumber++; @@ -50,7 +50,7 @@ public function next() /** * {@inheritdoc} */ - public function key() + public function key(): int { return $this->lineNumber; } @@ -58,7 +58,7 @@ public function key() /** * {@inheritdoc} */ - public function valid() + public function valid(): bool { return null !== $this->line; } @@ -66,7 +66,7 @@ public function valid() /** * {@inheritdoc} */ - public function rewind() + public function rewind(): void { $this->bodyStream->rewind(); $this->lineNumber = 1;