Skip to content

Commit 7aad50d

Browse files
authored
Merge pull request #643 from williamdes/phpstan-fixes
phpstan fixes (php doc blocks)
2 parents 3eb1f3c + 39e739d commit 7aad50d

10 files changed

+19
-10
lines changed

MangoPay/ApiCards.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function Update($card)
4545
* Gets a Card's PreAuthorizations
4646
* @param int $cardId ID of the Card for which to retrieve PreAuthorizations
4747
* @param \MangoPay\Pagination $pagination Pagination object
48-
* @param \MangoPay\FilterPreAuthorizations filter Filtering object
48+
* @param \MangoPay\FilterPreAuthorizations $filter Filtering object
4949
* @param \MangoPay\Sorting $sorting Sorting object
5050
* @return \MangoPay\CardPreAuthorization[] List of the Card's PreAuthorizations
5151
*/

MangoPay/ApiClients.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ public function Update($client)
3737
* Upload a logo for client.
3838
* Only GIF, PNG, JPG, JPEG, BMP, PDF and DOC formats are accepted,
3939
* and file must be less than about 7MB
40-
* @param \MangoPay\ClientLogoUpload $logo ClientLogoUpload object
40+
* @param \MangoPay\ClientLogoUpload $logoUpload ClientLogoUpload object
41+
* @param string|null $idempotencyKey
4142
*/
4243
public function UploadLogo($logoUpload, $idempotencyKey = null)
4344
{

MangoPay/ApiDisputes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function GetPendingSettlements(& $pagination = null, $sorting = null)
4747

4848
/**
4949
* Updates dispute's tag
50-
* @param \MangoPay\Dispute Dispute object to update
50+
* @param \MangoPay\Dispute $dispute Dispute object to update
5151
* @return \MangoPay\Dispute Transfer instance returned from API
5252
*/
5353
public function Update($dispute)

MangoPay/ApiPayOuts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function GetBankwire($payOutId)
6161
* Returns a list of Refunds pertaining to a certain PayOut.
6262
* @param string $payOutId ID of the PayOut for which to retrieve Refunds
6363
* @param \MangoPay\Pagination $pagination Pagination object
64-
* @param \MangoPay\FilterRefunds filter Filtering object
64+
* @param \MangoPay\FilterRefunds $filter Filtering object
6565
* @param \MangoPay\Sorting $sorting Sorting object
6666
* @return \MangoPay\Refund[] List of Refunds for the PayOut
6767
*/

MangoPay/BankingAliasOTHER.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,26 @@
55
class BankingAliasOTHER extends BankingAlias
66
{
77
/**
8-
* @var Type
8+
* Type
9+
* @var string
910
*/
1011
public $Type;
1112

1213
/**
1314
* Account Number
15+
* @var string
1416
*/
1517
public $AccountNumber;
1618

1719
/**
1820
* BIC
21+
* @var string
1922
*/
2023
public $BIC;
2124

2225
/**
2326
* Country
27+
* @var string
2428
*/
2529
public $Country;
2630
}

MangoPay/Libraries/ApiBase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,8 @@ protected function getLogger()
243243

244244
/**
245245
* Constructor
246-
* @param \MangoPay\MangoPayApi Root/parent instance that holds the OAuthToken and Configuration instance
246+
* Root/parent instance that holds the OAuthToken and Configuration instance
247+
* @param \MangoPay\MangoPayApi $root
247248
*/
248249
public function __construct($root)
249250
{
@@ -310,7 +311,6 @@ protected function CreateObject($methodKey, $entity, $responseClassName = null,
310311
* Get entity object from API
311312
* @param string $methodKey Key with request data
312313
* @param object $responseClassName Name of entity class from response
313-
* @param array $params path variable in urls
314314
* @return object Response data
315315
* @throws Exception
316316
*/

MangoPay/Libraries/AuthenticationHelper.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ class AuthenticationHelper
1212

1313
/**
1414
* Constructor
15-
* @param \MangoPay\MangoPayApi Root/parent instance that holds the OAuth token and Configuration instance
15+
* Root/parent instance that holds the OAuthToken and Configuration instance
16+
* @param \MangoPay\MangoPayApi $root
1617
*/
1718
public function __construct($root)
1819
{

MangoPay/Libraries/UrlTool.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ class UrlTool
1212

1313
/**
1414
* Constructor
15-
* @param \MangoPay\MangoPayApi Root/parent instance that holds the OAuthToken and Configuration instance
15+
* Root/parent instance that holds the OAuthToken and Configuration instance
16+
* @param \MangoPay\MangoPayApi $root
1617
*/
1718
public function __construct($root)
1819
{

MangoPay/PayInExecutionDetailsDirect.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,7 @@ public function GetSubObjects()
7272
$subObjects = parent::GetSubObjects();
7373
$subObjects['Billing'] = '\MangoPay\Billing';
7474
$subObjects['SecurityInfo'] = '\MangoPay\SecurityInfo';
75+
76+
return $subObjects;
7577
}
7678
}

MangoPay/PayInPaymentDetailsPayconiq.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class PayInPaymentDetailsPayconiq extends Libraries\Dto implements PayInPaymentD
99
{
1010
/**
1111
* The country of your user (should be BE, NL or LU)
12-
* @var $Country
12+
* @var string
1313
*/
1414
public $Country;
1515

0 commit comments

Comments
 (0)