From f0d24d4292321233e6657953a630b64455b98a82 Mon Sep 17 00:00:00 2001 From: "Libor M." Date: Fri, 4 Oct 2024 14:55:35 +0200 Subject: [PATCH] resolved phpstan issues --- src/Body/RequestBody.php | 2 ++ 1 file changed, 2 insertions(+) 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);