From 780e43ee0117dc117594dc9e62451259c5a8babb Mon Sep 17 00:00:00 2001 From: Ali Hassan <127856200+ali-hassan-careship@users.noreply.github.com> Date: Tue, 7 May 2024 21:23:36 +0200 Subject: [PATCH] Change the parameter type from int to string in ApiUsers.php function GetBankAccount Since Mangopay has changed the format of Ids, bank account ids have also changed. As a result, now the ids are string instead of integers. My change proposes a change in $bankAccountId parameter data type from int to string on Line 148. The reason from proposing this change is that for me, my project was failing phpsalm and phpstan checks --- MangoPay/ApiUsers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MangoPay/ApiUsers.php b/MangoPay/ApiUsers.php index dab35f49..95ab107d 100644 --- a/MangoPay/ApiUsers.php +++ b/MangoPay/ApiUsers.php @@ -145,7 +145,7 @@ public function GetBankAccounts($userId, & $pagination = null, $sorting = null, /** * Get bank account for user * @param string $userId User Id - * @param int $bankAccountId Bank account Id + * @param string $bankAccountId Bank account Id * * @return \MangoPay\BankAccount Entity of bank account object */