@@ -65,7 +65,7 @@ public function getRequest()
6565 * @throws NetworkException
6666 * @throws ConnectionTimeoutException
6767 */
68- public function get (array $ queryParameters = null )
68+ public function get (array $ queryParameters = array () )
6969 {
7070 $ this ->request
7171 ->setMethod (RequestInterface::REQUEST_METHOD_GET )
@@ -81,7 +81,7 @@ public function get(array $queryParameters = null)
8181 * @throws NetworkException
8282 * @throws ConnectionTimeoutException
8383 */
84- public function head (array $ queryParameters = null )
84+ public function head (array $ queryParameters = array () )
8585 {
8686 $ this ->request
8787 ->setMethod (RequestInterface::REQUEST_METHOD_HEAD )
@@ -97,7 +97,7 @@ public function head(array $queryParameters = null)
9797 * @throws NetworkException
9898 * @throws ConnectionTimeoutException
9999 */
100- public function post (array $ postData = null )
100+ public function post (array $ postData = array () )
101101 {
102102 $ this ->request
103103 ->getMessage ()
@@ -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 $ this ->request
120120 ->getMessage ()
@@ -131,7 +131,7 @@ public function put(array $putData = null)
131131 * @throws NetworkException
132132 * @throws ConnectionTimeoutException
133133 */
134- public function patch (array $ patchData = null )
134+ public function patch (array $ patchData = array () )
135135 {
136136 $ this ->request
137137 ->getMessage ()
@@ -148,7 +148,7 @@ public function patch(array $patchData = null)
148148 * @throws NetworkException
149149 * @throws ConnectionTimeoutException
150150 */
151- public function delete (array $ queryParameters = null )
151+ public function delete (array $ queryParameters = array () )
152152 {
153153 $ this ->request
154154 ->setMethod (RequestInterface::REQUEST_METHOD_DELETE )
0 commit comments