1 | <?php |
||
5 | class PartnerClient extends BaseClient |
||
6 | { |
||
7 | /** |
||
8 | * Partner Create Order on External Shop |
||
9 | * |
||
10 | * @param string $ventureCode |
||
11 | * @param array $orderData |
||
12 | * @return bool |
||
13 | */ |
||
14 | 2 | public function createOrderOnVenture($ventureCode, $orderData) |
|
31 | |||
32 | /** |
||
33 | * Partner Confirm Paid Order on External Shop |
||
34 | * |
||
35 | * @param string $ventureCode |
||
36 | * @param int $orderNumber |
||
37 | * @return bool |
||
38 | */ |
||
39 | 2 | public function confirmPaymentOnVenture($ventureCode, $orderNumber) |
|
40 | { |
||
41 | try { |
||
42 | 2 | $this->doRequest( |
|
43 | 2 | 'put', |
|
44 | 2 | $this->buildRequestUrl(sprintf('/fulfillment/order/confirm/%s', $orderNumber), $ventureCode) |
|
45 | 2 | ); |
|
46 | 2 | } catch (\Exception $e) { |
|
47 | 1 | $this->throwException( |
|
48 | 1 | $e, |
|
49 | 1 | 'Unable to confirm payment for venture on Externalshop', |
|
50 | 1 | ['VentureCode' => $ventureCode, 'OrderNr' => $orderNumber] |
|
51 | 1 | ); |
|
52 | } |
||
53 | 2 | return true; |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * Partner Cancel Order on External Shop |
||
58 | * |
||
59 | * @param string $ventureCode |
||
60 | * @param int $orderNumber |
||
61 | * @return bool |
||
62 | */ |
||
63 | 2 | public function cancelOrderOnVenture($ventureCode, $orderNumber) |
|
79 | |||
80 | /** |
||
81 | * Partner Confirm Paid Order on External Shop |
||
82 | * @param string $ventureCode |
||
83 | * @param int $orderNumber |
||
84 | * @return bool |
||
85 | */ |
||
86 | public function partnerConfirmPaymentForVenture($ventureCode, $orderNumber) |
||
98 | |||
99 | /** |
||
100 | * Partner Cancel Order on External Shop |
||
101 | * @param string $ventureCode |
||
102 | * @param int $orderNumber |
||
103 | * @return bool |
||
104 | */ |
||
105 | public function partnerCancelOrderOnVenture($ventureCode, $orderNumber) |
||
117 | |||
118 | /** |
||
119 | * @param RequestException $e |
||
120 | * @throw Iris_Service_Exception_RetryMessage |
||
121 | */ |
||
122 | private function throwException(RequestException $e) |
||
134 | } |
||
135 |
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: