diff --git a/src/Body/RequestBody.php b/src/Body/RequestBody.php index 8e2ab4c..9ba84bf 100644 --- a/src/Body/RequestBody.php +++ b/src/Body/RequestBody.php @@ -47,6 +47,7 @@ private function getBodyAsString($body): string return stream_get_contents($body) ?: ''; } + /** @var string $body */ return $body; } @@ -65,6 +66,7 @@ private function getBodyAsResource($body) /** @var resource $stream */ $stream = fopen("php://temp", 'r+'); + /** @var string $body */ fwrite($stream, $body); rewind($stream);