Skip to content

Commit da66e04

Browse files
committed
Make last argument optional in HttpClient::doRequest
1 parent 0e03542 commit da66e04

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎README.markdown‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ If you want to use your own http client implementation, inject it to the Github_
487487
// create a custom http client
488488
class MyHttpClient extends Github_HttpClient
489489
{
490-
public function doRequest($url, array $parameters = array(), $httpMethod = 'GET', array $options)
490+
public function doRequest($url, array $parameters = array(), $httpMethod = 'GET', array $options = array())
491491
{
492492
// send the request and return the raw response
493493
}

‎lib/Github/HttpClient.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(array $options = array())
4545
*
4646
* @return string HTTP response
4747
*/
48-
abstract protected function doRequest($url, array $parameters = array(), $httpMethod = 'GET', array $options);
48+
abstract protected function doRequest($url, array $parameters = array(), $httpMethod = 'GET', array $options = array());
4949

5050
/**
5151
* Send a GET request

‎lib/Github/HttpClient/Curl.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Github_HttpClient_Curl extends Github_HttpClient
1818
*
1919
* @return string HTTP response
2020
*/
21-
public function doRequest($url, array $parameters = array(), $httpMethod = 'GET', array $options)
21+
public function doRequest($url, array $parameters = array(), $httpMethod = 'GET', array $options = array())
2222
{
2323
$curlOptions = array();
2424

‎test/Github/Tests/HttpClientTest.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected function getHttpClientMockBuilder()
7878

7979
class Github_HttpClient_TestDriver extends Github_HttpClient
8080
{
81-
protected function doRequest($url, array $parameters = array(), $httpMethod = 'GET', array $options)
81+
protected function doRequest($url, array $parameters = array(), $httpMethod = 'GET', array $options = array())
8282
{
8383
}
8484

0 commit comments

Comments
 (0)