Skip to content

Commit

Permalink
Merge pull request #53 from danez/patch-1
Browse files Browse the repository at this point in the history
Fix compatibility with PHP 7.4 by removing curly brace usage
  • Loading branch information
caseyamcl committed Mar 30, 2020
2 parents 6302cda + 523f6e5 commit 606fa16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HttpAdapter/CurlAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public function request($url)

//Check response
$httpCode = (string) $info->http_code;
if ($httpCode{0} != '2') {
if ($httpCode[0] != '2') {
$msg = sprintf('HTTP Request Failed (code %s): %s', $info->http_code, $resp);
throw new HttpException($resp, $msg, $httpCode);
} elseif (strlen(trim($resp)) == 0) {
Expand Down

0 comments on commit 606fa16

Please sign in to comment.