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 62cbfe3 commit b61d8f6
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 @@ -50,6 +50,7 @@ private function getBodyAsString($body): string
return stream_get_contents($body) ?: '';
}

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

Expand All @@ -68,6 +69,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 b61d8f6

Please sign in to comment.