Skip to content

Commit

Permalink
resolved phpstan issues
Browse files Browse the repository at this point in the history
  • Loading branch information
liborm85 committed Oct 4, 2024
1 parent 6d00843 commit f0d24d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Body/RequestBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ private function getBodyAsString($body): string
return stream_get_contents($body) ?: '';
}

/** @var string $body */
return $body;
}

Expand All @@ -65,6 +66,7 @@ private function getBodyAsResource($body)
/** @var resource $stream */
$stream = fopen("php://temp", 'r+');

/** @var string $body */
fwrite($stream, $body);
rewind($stream);

Expand Down

0 comments on commit f0d24d4

Please sign in to comment.