@@ -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 )
0 commit comments