Skip to content

Commit

Permalink
Merge pull request #643 from williamdes/phpstan-fixes
Browse files Browse the repository at this point in the history
phpstan fixes (php doc blocks)
  • Loading branch information
iulian03 authored Nov 12, 2024
2 parents 3eb1f3c + 39e739d commit 7aad50d
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 10 deletions.
2 changes: 1 addition & 1 deletion MangoPay/ApiCards.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function Update($card)
* Gets a Card's PreAuthorizations
* @param int $cardId ID of the Card for which to retrieve PreAuthorizations
* @param \MangoPay\Pagination $pagination Pagination object
* @param \MangoPay\FilterPreAuthorizations filter Filtering object
* @param \MangoPay\FilterPreAuthorizations $filter Filtering object
* @param \MangoPay\Sorting $sorting Sorting object
* @return \MangoPay\CardPreAuthorization[] List of the Card's PreAuthorizations
*/
Expand Down
3 changes: 2 additions & 1 deletion MangoPay/ApiClients.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ public function Update($client)
* Upload a logo for client.
* Only GIF, PNG, JPG, JPEG, BMP, PDF and DOC formats are accepted,
* and file must be less than about 7MB
* @param \MangoPay\ClientLogoUpload $logo ClientLogoUpload object
* @param \MangoPay\ClientLogoUpload $logoUpload ClientLogoUpload object
* @param string|null $idempotencyKey
*/
public function UploadLogo($logoUpload, $idempotencyKey = null)
{
Expand Down
2 changes: 1 addition & 1 deletion MangoPay/ApiDisputes.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function GetPendingSettlements(& $pagination = null, $sorting = null)

/**
* Updates dispute's tag
* @param \MangoPay\Dispute Dispute object to update
* @param \MangoPay\Dispute $dispute Dispute object to update
* @return \MangoPay\Dispute Transfer instance returned from API
*/
public function Update($dispute)
Expand Down
2 changes: 1 addition & 1 deletion MangoPay/ApiPayOuts.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function GetBankwire($payOutId)
* Returns a list of Refunds pertaining to a certain PayOut.
* @param string $payOutId ID of the PayOut for which to retrieve Refunds
* @param \MangoPay\Pagination $pagination Pagination object
* @param \MangoPay\FilterRefunds filter Filtering object
* @param \MangoPay\FilterRefunds $filter Filtering object
* @param \MangoPay\Sorting $sorting Sorting object
* @return \MangoPay\Refund[] List of Refunds for the PayOut
*/
Expand Down
6 changes: 5 additions & 1 deletion MangoPay/BankingAliasOTHER.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,26 @@
class BankingAliasOTHER extends BankingAlias
{
/**
* @var Type
* Type
* @var string
*/
public $Type;

/**
* Account Number
* @var string
*/
public $AccountNumber;

/**
* BIC
* @var string
*/
public $BIC;

/**
* Country
* @var string
*/
public $Country;
}
4 changes: 2 additions & 2 deletions MangoPay/Libraries/ApiBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ protected function getLogger()

/**
* Constructor
* @param \MangoPay\MangoPayApi Root/parent instance that holds the OAuthToken and Configuration instance
* Root/parent instance that holds the OAuthToken and Configuration instance
* @param \MangoPay\MangoPayApi $root
*/
public function __construct($root)
{
Expand Down Expand Up @@ -310,7 +311,6 @@ protected function CreateObject($methodKey, $entity, $responseClassName = null,
* Get entity object from API
* @param string $methodKey Key with request data
* @param object $responseClassName Name of entity class from response
* @param array $params path variable in urls
* @return object Response data
* @throws Exception
*/
Expand Down
3 changes: 2 additions & 1 deletion MangoPay/Libraries/AuthenticationHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class AuthenticationHelper

/**
* Constructor
* @param \MangoPay\MangoPayApi Root/parent instance that holds the OAuth token and Configuration instance
* Root/parent instance that holds the OAuthToken and Configuration instance
* @param \MangoPay\MangoPayApi $root
*/
public function __construct($root)
{
Expand Down
3 changes: 2 additions & 1 deletion MangoPay/Libraries/UrlTool.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ class UrlTool

/**
* Constructor
* @param \MangoPay\MangoPayApi Root/parent instance that holds the OAuthToken and Configuration instance
* Root/parent instance that holds the OAuthToken and Configuration instance
* @param \MangoPay\MangoPayApi $root
*/
public function __construct($root)
{
Expand Down
2 changes: 2 additions & 0 deletions MangoPay/PayInExecutionDetailsDirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,7 @@ public function GetSubObjects()
$subObjects = parent::GetSubObjects();
$subObjects['Billing'] = '\MangoPay\Billing';
$subObjects['SecurityInfo'] = '\MangoPay\SecurityInfo';

return $subObjects;
}
}
2 changes: 1 addition & 1 deletion MangoPay/PayInPaymentDetailsPayconiq.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PayInPaymentDetailsPayconiq extends Libraries\Dto implements PayInPaymentD
{
/**
* The country of your user (should be BE, NL or LU)
* @var $Country
* @var string
*/
public $Country;

Expand Down

0 comments on commit 7aad50d

Please sign in to comment.