@@ -63,7 +63,7 @@ public function getRequest()
63
63
* @throws NetworkException
64
64
* @throws ConnectionTimeoutException
65
65
*/
66
- public function get (array $ queryParameters = null )
66
+ public function get (array $ queryParameters = array () )
67
67
{
68
68
$ this ->request
69
69
->setMethod (RequestInterface::REQUEST_METHOD_GET )
@@ -79,7 +79,7 @@ public function get(array $queryParameters = null)
79
79
* @throws NetworkException
80
80
* @throws ConnectionTimeoutException
81
81
*/
82
- public function head (array $ queryParameters = null )
82
+ public function head (array $ queryParameters = array () )
83
83
{
84
84
$ this ->request
85
85
->setMethod (RequestInterface::REQUEST_METHOD_HEAD )
@@ -95,7 +95,7 @@ public function head(array $queryParameters = null)
95
95
* @throws NetworkException
96
96
* @throws ConnectionTimeoutException
97
97
*/
98
- public function post (array $ postData = null )
98
+ public function post (array $ postData = array () )
99
99
{
100
100
$ body = new Body ();
101
101
$ body ->setBodyTextFromArray ($ postData );
@@ -114,7 +114,7 @@ public function post(array $postData = null)
114
114
* @throws NetworkException
115
115
* @throws ConnectionTimeoutException
116
116
*/
117
- public function put (array $ putData = null )
117
+ public function put (array $ putData = array () )
118
118
{
119
119
$ body = new Body ();
120
120
$ body ->setBodyTextFromArray ($ putData );
@@ -133,7 +133,7 @@ public function put(array $putData = null)
133
133
* @throws NetworkException
134
134
* @throws ConnectionTimeoutException
135
135
*/
136
- public function patch (array $ patchData = null )
136
+ public function patch (array $ patchData = array () )
137
137
{
138
138
$ body = new Body ();
139
139
$ body ->setBodyTextFromArray ($ patchData );
@@ -152,7 +152,7 @@ public function patch(array $patchData = null)
152
152
* @throws NetworkException
153
153
* @throws ConnectionTimeoutException
154
154
*/
155
- public function delete (array $ queryParameters = null )
155
+ public function delete (array $ queryParameters = array () )
156
156
{
157
157
$ this ->request
158
158
->setMethod (RequestInterface::REQUEST_METHOD_DELETE )
0 commit comments