Skip to content

Commit

Permalink
interface fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
asika32764 committed Jan 26, 2024
1 parent f588470 commit 0b0300d
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Stream/RequestBodyStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,23 +106,19 @@ public function isSeekable(): bool
*
* @return mixed
*/
public function seek($offset, $whence = SEEK_SET): mixed
public function seek($offset, $whence = SEEK_SET): void
{
$this->cursor = $offset;

return true;
}

/**
* rewind
*
* @return mixed
*/
public function rewind(): mixed
public function rewind(): void
{
$this->cursor = 0;

return true;
}

/**
Expand All @@ -142,15 +138,15 @@ public function isWritable(): bool
*
* @return int
*/
public function write($string): ?int
public function write($string): int
{
if (is_string($string)) {
$this->data = UriHelper::parseQuery($string);
} else {
$this->data = (array) $string;
}

return $this->getSize();
return (int) $this->getSize();
}

/**
Expand Down

0 comments on commit 0b0300d

Please sign in to comment.