diff --git a/src/Body/RequestBody.php b/src/Body/RequestBody.php index def829d..21d396e 100644 --- a/src/Body/RequestBody.php +++ b/src/Body/RequestBody.php @@ -50,6 +50,7 @@ private function getBodyAsString($body): string return stream_get_contents($body) ?: ''; } + /** @var string $body */ return $body; } @@ -68,6 +69,7 @@ private function getBodyAsResource($body) /** @var resource $stream */ $stream = fopen("php://temp", 'r+'); + /** @var string $body */ fwrite($stream, $body); rewind($stream);