1 | <?php |
||
16 | class PayoutService extends AbstractPaypalService |
||
17 | { |
||
18 | /** |
||
19 | * @param string $subject |
||
20 | * @param string $note |
||
21 | * @param string $receiverEmail |
||
22 | * @param string $itemId |
||
23 | * @param float $amount |
||
24 | * @param string $currency |
||
25 | * @return PayoutBatch|null |
||
26 | */ |
||
27 | public function createPayout( |
||
62 | |||
63 | /** |
||
64 | * @param string $payoutId |
||
65 | * @return PayoutBatch|null |
||
66 | */ |
||
67 | public function getPayout(string $payoutId): ?PayoutBatch |
||
79 | } |
||
80 |
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: