Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #14 from victorlap/patch-1
Browse files Browse the repository at this point in the history
Fix curl info for php >= 7.4.0
  • Loading branch information
casperbakker authored Jan 17, 2020
2 parents bd181b5 + f7fabb1 commit 7ad2178
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Request/CurlHttpRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ public function execute()

public function getInfo($option = null)
{
if (is_null($option)) {
return curl_getinfo($this->ch);
}

return curl_getinfo($this->ch, $option);
}

Expand All @@ -35,4 +39,4 @@ public function getErrorNumber()
{
return curl_errno($this->ch);
}
}
}

0 comments on commit 7ad2178

Please sign in to comment.