@@ -226,13 +226,13 @@ class Client
226226 * @param bool $verifySSLCerts Set default verify certificates flag
227227 */
228228 public function __construct (
229- string $ host ,
230- ? array $ headers = null ,
231- ? string $ version = null ,
232- ? array $ path = null ,
233- ? array $ curlOptions = null ,
234- bool $ retryOnLimit = false ,
235- bool $ verifySSLCerts = true
229+ $ host ,
230+ $ headers = null ,
231+ $ version = null ,
232+ $ path = null ,
233+ $ curlOptions = null ,
234+ $ retryOnLimit = false ,
235+ $ verifySSLCerts = true
236236 ) {
237237 $ this ->host = $ host ;
238238 $ this ->headers = $ headers ?: [];
@@ -364,7 +364,7 @@ public function setIsConcurrentRequest($isConcurrent)
364364 *
365365 * @return string
366366 */
367- private function buildUrl (? array $ queryParams = null )
367+ private function buildUrl ($ queryParams = null )
368368 {
369369 $ path = '/ ' . implode ('/ ' , $ this ->path );
370370 if (isset ($ queryParams )) {
@@ -380,12 +380,12 @@ private function buildUrl(?array $queryParams = null)
380380 * this function does not mutate any private variables.
381381 *
382382 * @param string $method
383- * @param array $body
383+ * @param $body
384384 * @param array $headers
385385 *
386386 * @return array
387387 */
388- private function createCurlOptions ($ method , ? array $ body = null , ? array $ headers = null )
388+ private function createCurlOptions ($ method , $ body = null , $ headers = null )
389389 {
390390 $ options = [
391391 CURLOPT_RETURNTRANSFER => true ,
@@ -508,7 +508,7 @@ private function retryRequest(array $responseHeaders, $method, $url, $body, $hea
508508 *
509509 * @throws InvalidRequest
510510 */
511- public function makeRequest ($ method , $ url , ? array $ body = null , ? array $ headers = null , $ retryOnLimit = false )
511+ public function makeRequest ($ method , $ url , $ body = null , $ headers = null , $ retryOnLimit = false )
512512 {
513513 $ channel = curl_init ($ url );
514514
@@ -604,7 +604,7 @@ public function makeAllRequests(array $requests = [])
604604 *
605605 * @return Client object
606606 */
607- public function _ (? string $ name = null )
607+ public function _ ($ name = null )
608608 {
609609 if (isset ($ name )) {
610610 $ this ->path [] = $ name ;
0 commit comments