| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | public function packageDetails($packIds, $cc = null, $language = null) |
||
| 19 | { |
||
| 20 | // Set up the api details |
||
| 21 | $this->method = 'packagedetails'; |
||
| 22 | $this->version = null; |
||
| 23 | // Set up the arguments |
||
| 24 | $arguments = [ |
||
| 25 | 'packageids' => $packIds, |
||
| 26 | 'cc' => $cc, |
||
| 27 | 'l' => $language, |
||
| 28 | ]; |
||
| 29 | // Get the client |
||
| 30 | $client = $this->setUpClient($arguments); |
||
| 31 | $packs = $this->convertToObjects($client, $packIds); |
||
| 32 | |||
| 33 | return $packs; |
||
| 34 | } |
||
| 35 | |||
| 61 |
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: