@@ -49,15 +49,15 @@ public function setTransformer(TransformerInterface $transformer)
49
49
/**
50
50
* Execute a http get query
51
51
*
52
- * @param string $path
53
- * @param array $body
54
- * @param array $headers
52
+ * @param string $path
53
+ * @param array|string $body
54
+ * @param array $headers
55
55
* @return array|mixed
56
56
*/
57
- protected function get ($ path , array $ body = [], array $ headers = [])
57
+ protected function get ($ path , $ body = [], array $ headers = [])
58
58
{
59
59
$ client = $ this ->getClient ();
60
- $ request = $ client ::createRequest ('GET ' , $ path , $ body , $ headers );
60
+ $ request = AbstractHttpClient ::createRequest ('GET ' , $ path , $ body , $ headers );
61
61
62
62
return $ this ->transformer ->transform ($ client ->send ($ request ));
63
63
}
@@ -73,7 +73,7 @@ protected function get($path, array $body = [], array $headers = [])
73
73
protected function put ($ path , $ body = [], array $ headers = [])
74
74
{
75
75
$ client = $ this ->getClient ();
76
- $ request = $ client ::createRequest ('PUT ' , $ path , $ body , $ headers );
76
+ $ request = AbstractHttpClient ::createRequest ('PUT ' , $ path , $ body , $ headers );
77
77
78
78
return $ this ->transformer ->transform ($ client ->send ($ request ));
79
79
}
@@ -89,7 +89,7 @@ protected function put($path, $body = [], array $headers = [])
89
89
protected function post ($ path , $ body = [], array $ headers = [])
90
90
{
91
91
$ client = $ this ->getClient ();
92
- $ request = $ client ::createRequest ('POST ' , $ path , $ body , $ headers );
92
+ $ request = AbstractHttpClient ::createRequest ('POST ' , $ path , $ body , $ headers );
93
93
94
94
return $ this ->transformer ->transform ($ client ->send ($ request ));
95
95
}
@@ -105,7 +105,7 @@ protected function post($path, $body = [], array $headers = [])
105
105
protected function delete ($ path , $ body = [], array $ headers = [])
106
106
{
107
107
$ client = $ this ->getClient ();
108
- $ request = $ client ::createRequest ('DELETE ' , $ path , $ body , $ headers );
108
+ $ request = AbstractHttpClient ::createRequest ('DELETE ' , $ path , $ body , $ headers );
109
109
110
110
return $ this ->transformer ->transform ($ client ->send ($ request ));
111
111
}
0 commit comments