Skip to content

Commit f39e52d

Browse files
author
Martin Brecht-Precht
committed
Modified the default paramaters of the simple class methods.
1 parent 15147c8 commit f39e52d

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/BasicHttpClient.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public function getRequest()
6363
* @throws NetworkException
6464
* @throws ConnectionTimeoutException
6565
*/
66-
public function get(array $queryParameters = null)
66+
public function get(array $queryParameters = array())
6767
{
6868
$this->request
6969
->setMethod(RequestInterface::REQUEST_METHOD_GET)
@@ -79,7 +79,7 @@ public function get(array $queryParameters = null)
7979
* @throws NetworkException
8080
* @throws ConnectionTimeoutException
8181
*/
82-
public function head(array $queryParameters = null)
82+
public function head(array $queryParameters = array())
8383
{
8484
$this->request
8585
->setMethod(RequestInterface::REQUEST_METHOD_HEAD)
@@ -95,7 +95,7 @@ public function head(array $queryParameters = null)
9595
* @throws NetworkException
9696
* @throws ConnectionTimeoutException
9797
*/
98-
public function post(array $postData = null)
98+
public function post(array $postData = array())
9999
{
100100
$body = new Body();
101101
$body->setBodyTextFromArray($postData);
@@ -114,7 +114,7 @@ public function post(array $postData = null)
114114
* @throws NetworkException
115115
* @throws ConnectionTimeoutException
116116
*/
117-
public function put(array $putData = null)
117+
public function put(array $putData = array())
118118
{
119119
$body = new Body();
120120
$body->setBodyTextFromArray($putData);
@@ -133,7 +133,7 @@ public function put(array $putData = null)
133133
* @throws NetworkException
134134
* @throws ConnectionTimeoutException
135135
*/
136-
public function patch(array $patchData = null)
136+
public function patch(array $patchData = array())
137137
{
138138
$body = new Body();
139139
$body->setBodyTextFromArray($patchData);
@@ -152,7 +152,7 @@ public function patch(array $patchData = null)
152152
* @throws NetworkException
153153
* @throws ConnectionTimeoutException
154154
*/
155-
public function delete(array $queryParameters = null)
155+
public function delete(array $queryParameters = array())
156156
{
157157
$this->request
158158
->setMethod(RequestInterface::REQUEST_METHOD_DELETE)

src/HttpClientInterface.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,36 +22,36 @@ public function getRequest();
2222
* @param mixed[] $queryParameters
2323
* @return ResponseInterface
2424
*/
25-
public function get(array $queryParameters = null);
25+
public function get(array $queryParameters = array());
2626

2727
/**
2828
* @param mixed[] $queryParameters
2929
* @return ResponseInterface
3030
*/
31-
public function head(array $queryParameters = null);
31+
public function head(array $queryParameters = array());
3232

3333
/**
3434
* @param array $postData
3535
* @return ResponseInterface
3636
*/
37-
public function post(array $postData = null);
37+
public function post(array $postData = array());
3838

3939
/**
4040
* @param array $putData
4141
* @return ResponseInterface
4242
*/
43-
public function put(array $putData = null);
43+
public function put(array $putData = array());
4444

4545
/**
4646
* @param array $patchData
4747
* @return ResponseInterface
4848
*/
49-
public function patch(array $patchData = null);
49+
public function patch(array $patchData = array());
5050

5151
/**
5252
* @param mixed[] $queryParameters
5353
* @return ResponseInterface
5454
*/
55-
public function delete(array $queryParameters = null);
55+
public function delete(array $queryParameters = array());
5656

5757
}

0 commit comments

Comments
 (0)