Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit db81379

Browse files
authored
Replace empty() by more strict checks (#1125)
* Replace empty() by stricter checks * Apply StyleCI fixes * Compare with empty string instead of checking length * Compare with empty array instead of checking count * Compare with empty string instead of checking length
1 parent e4a7353 commit db81379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Provider/AbstractHttpProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ protected function getParsedResponse(RequestInterface $request): string
9696
}
9797

9898
$body = (string) $response->getBody();
99-
if (empty($body)) {
99+
if ('' === $body) {
100100
throw InvalidServerResponse::emptyResponse((string) $request->getUri());
101101
}
102102

0 commit comments

Comments
 (0)