1 | <?php |
||
20 | class MeUpdateRequest extends AbstractUpdateRequest |
||
21 | { |
||
22 | protected $resultClass = '\Commercetools\Core\Model\Customer\Customer'; |
||
23 | |||
24 | /** |
||
25 | * @param int $version |
||
26 | * @param Context $context |
||
27 | */ |
||
28 | public function __construct($version, Context $context = null) |
||
32 | |||
33 | /** |
||
34 | * @param int $version |
||
35 | * @param Context $context |
||
36 | * @return static |
||
37 | */ |
||
38 | public static function ofVersion($version, Context $context = null) |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | * @internal |
||
46 | */ |
||
47 | protected function getPath() |
||
51 | |||
52 | /** |
||
53 | * @return HttpRequest |
||
54 | * @internal |
||
55 | */ |
||
56 | public function httpRequest() |
||
61 | } |
||
62 |
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: