1 | <?php |
||
9 | class Package extends Client |
||
10 | { |
||
11 | public function __construct() |
||
17 | |||
18 | public function packageDetails($packIds, $cc = null, $language = null) |
||
35 | |||
36 | protected function convertToObjects($package, $packIds) |
||
43 | |||
44 | /** |
||
45 | * @param $packs |
||
46 | * |
||
47 | * @return Collection |
||
48 | */ |
||
49 | protected function convertPacks($packages, $packIds) |
||
60 | } |
||
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: