Skip to content

Commit 5ccaa6b

Browse files
committed
fix: change bool cast to empty check when checking for a response body
1 parent 109a7a1 commit 5ccaa6b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Parsers/ResponseParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function parse(ResponseInterface $response): DocumentInterface
4646

4747
private function responseHasBody(ResponseInterface $response): bool
4848
{
49-
return (bool) $response->getBody()->getSize();
49+
return empty($response->getBody()->getSize());
5050
}
5151

5252
private function responseHasSuccessfulStatusCode(ResponseInterface $response): bool

0 commit comments

Comments
 (0)