| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 10 |
| Ratio | 100 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 49 | View Code Duplication | public function post($uri, $params = [], $headers = null) |
|
| 50 | { |
||
| 51 | $request = new Request('POST', $uri, $headers); |
||
| 52 | |||
| 53 | $response = $this |
||
| 54 | ->client |
||
| 55 | ->send($request, ['query' => $params]); |
||
| 56 | |||
| 57 | return $this->parseResponse($response); |
||
| 58 | } |
||
| 59 | |||
| 85 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: