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

Commit 7ad2178

Browse files
authored
Merge pull request #14 from victorlap/patch-1
Fix curl info for php >= 7.4.0
2 parents bd181b5 + f7fabb1 commit 7ad2178

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/Request/CurlHttpRequest.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public function execute()
2323

2424
public function getInfo($option = null)
2525
{
26+
if (is_null($option)) {
27+
return curl_getinfo($this->ch);
28+
}
29+
2630
return curl_getinfo($this->ch, $option);
2731
}
2832

@@ -35,4 +39,4 @@ public function getErrorNumber()
3539
{
3640
return curl_errno($this->ch);
3741
}
38-
}
42+
}

0 commit comments

Comments
 (0)