1 | <?php |
||
32 | class Forwarding |
||
33 | { |
||
34 | /** |
||
35 | * PAYONE config helper |
||
36 | * |
||
37 | * @var \Payone\Core\Helper\Config |
||
38 | */ |
||
39 | protected $configHelper; |
||
40 | |||
41 | /** |
||
42 | * Magento 2 Curl library |
||
43 | * |
||
44 | * @var \Magento\Framework\HTTP\Client\Curl |
||
45 | */ |
||
46 | protected $curl; |
||
47 | |||
48 | /** |
||
49 | * Constructor |
||
50 | * |
||
51 | * @param \Payone\Core\Helper\Config $configHelper |
||
52 | */ |
||
53 | public function __construct(\Payone\Core\Helper\Config $configHelper, \Magento\Framework\HTTP\Client\Curl $curl) |
||
58 | |||
59 | /** |
||
60 | * Execute TransactionStatus forwarding with curl |
||
61 | * |
||
62 | * @param array $aPostArray |
||
63 | * @param string $sUrl |
||
64 | * @param int $iTimeout |
||
65 | * @return void |
||
66 | */ |
||
67 | protected function forwardRequest($aPostArray, $sUrl, $iTimeout) |
||
78 | |||
79 | /** |
||
80 | * Handle single TransactionStatus forwarding |
||
81 | * |
||
82 | * @param array $aPostArray |
||
83 | * @param array $aForwardEntry |
||
84 | * @param string $sStatusAction |
||
85 | * @return void |
||
86 | */ |
||
87 | protected function handleSingleForwarding($aPostArray, $aForwardEntry, $sStatusAction) |
||
95 | |||
96 | /** |
||
97 | * Handle TransactionStatus forwarding |
||
98 | * |
||
99 | * @param array $aPostArray |
||
100 | * @return void |
||
101 | */ |
||
102 | public function handleForwardings($aPostArray) |
||
112 | } |
||
113 |
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: