Skip to content

Commit

Permalink
fix php7.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Dec 3, 2024
1 parent f3de946 commit f80f4f1
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
2 changes: 1 addition & 1 deletion src/Http/Payload/CreateMandatePayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(
?string $consumerEmail = null,
?DateTimeInterface $signatureDate = null,
?string $mandateReference = null,
?string $paypalBillingAgreementId = null,
?string $paypalBillingAgreementId = null
) {
$this->method = $method;
$this->consumerName = $consumerName;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Payload/CreateRefundPaymentPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(
Money $amount,
?Metadata $metadata = null,
?bool $reverseRouting = null,
?DataCollection $routingReversals = null,
?DataCollection $routingReversals = null
) {
$this->description = $description;
$this->amount = $amount;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Payload/CreateSubscriptionPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function __construct(
?Metadata $metadata = null,
?string $webhookUrl = null,
?string $mandateId = null,
?string $profileId = null,
?string $profileId = null
) {
$this->amount = $amount;
$this->interval = $interval;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Payload/UpdatePaymentLinkPayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class UpdatePaymentLinkPayload extends DataBag

public function __construct(
string $description,
bool $archived = false,
bool $archived = false
) {
$this->description = $description;
$this->archived = $archived;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Payload/UpdatePaymentRoutePayload.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class UpdatePaymentRoutePayload extends DataBag
private DateTimeInterface $releaseDate;

public function __construct(
DateTimeInterface $releaseDate,
DateTimeInterface $releaseDate
) {
$this->releaseDate = $releaseDate;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Query/CreatePaymentQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CreatePaymentQuery extends Query
private bool $includeQrCode;

public function __construct(
bool $includeQrCode = false,
bool $includeQrCode = false
) {
$this->includeQrCode = $includeQrCode;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Query/GetAllMethodsQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct(
bool $includeIssuers = false,
bool $includePricing = false,
?string $locale = null,
?Money $amount = null,
?Money $amount = null
) {
$this->locale = $locale;
$this->includeIssuers = $includeIssuers;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Query/GetBalanceReportQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class GetBalanceReportQuery extends Query
public function __construct(
DateTimeInterface $from,
DateTimeInterface $until,
?string $grouping = null,
?string $grouping = null
) {
$this->from = $from;
$this->until = $until;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Query/GetClientQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class GetClientQuery extends Query

public function __construct(
bool $embedOrganization = false,
bool $embedOnboarding = false,
bool $embedOnboarding = false
) {
$this->embedOrganization = $embedOrganization;
$this->embedOnboarding = $embedOnboarding;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Query/GetEnabledPaymentMethodsQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function __construct(
private ?array $orderLineCategories = null,
private ?string $profileId = null,
private ?bool $includeIssuers = null,
private ?bool $includePricing = null,
private ?bool $includePricing = null
) {}

public function toArray(): array
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Query/GetPaginatedClientQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class GetPaginatedClientQuery extends Query
public function __construct(
PaginatedQuery $paginatedQuery,
bool $embedOrganization = false,
bool $embedOnboarding = false,
bool $embedOnboarding = false
) {
$this->paginatedQuery = $paginatedQuery;
$this->embedOrganization = $embedOrganization;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Query/GetPaginatedSettlementsQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class GetPaginatedSettlementsQuery extends Query

public function __construct(
PaginatedQuery $query,
?string $balanceId = null,
?string $balanceId = null
) {
$this->query = $query;
$this->balanceId = $balanceId;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Query/GetPaymentMethodQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(
?string $currency = null,
?string $profileId = null,
bool $includeIssuers = false,
bool $includePricing = false,
bool $includePricing = false
) {
$this->locale = $locale;
$this->currency = $currency;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Query/GetPaymentQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function __construct(
bool $embedRefunds = false,
bool $embedChargebacks = false,
bool $includeQrCode = false,
bool $includeRemainderDetails = false,
bool $includeRemainderDetails = false
) {
$this->embedCaptures = $embedCaptures;
$this->embedRefunds = $embedRefunds;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Query/GetPaymentRefundQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class GetPaymentRefundQuery extends Query
private bool $includePayment;

public function __construct(
bool $includePayment = false,
bool $includePayment = false
) {
$this->includePayment = $includePayment;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Query/PaginatedQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class PaginatedQuery extends Query

public function __construct(
?string $from = null,
?int $limit = null,
?int $limit = null
) {
$this->from = $from;
$this->limit = $limit;
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Query/SortablePaginatedQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class SortablePaginatedQuery extends PaginatedQuery
public function __construct(
?string $from = null,
?int $limit = null,
?string $sort = null,
?string $sort = null
) {
parent::__construct($from, $limit);

Expand Down
2 changes: 1 addition & 1 deletion src/Http/Requests/CreateCustomerPaymentRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class CreateCustomerPaymentRequest extends CreatePaymentRequest implements HasPa
public function __construct(
string $customerId,
CreatePaymentPayload $payload,
?CreatePaymentQuery $query = null,
?CreatePaymentQuery $query = null
) {
parent::__construct($payload, $query);

Expand Down
2 changes: 1 addition & 1 deletion tests/EndpointCollection/BalanceEndpointCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function iterate()
*/
protected function assertBalance(
Balance $balance,
string $balanceId,
string $balanceId
) {
$this->assertInstanceOf(Balance::class, $balance);
$this->assertEquals('balance', $balance->resource);
Expand Down
2 changes: 1 addition & 1 deletion tests/Fixtures/MockResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MockResponse
public function __construct(
int $status = 200,
string $body = '',
string $resourceId = '',
string $resourceId = ''
) {
$this->status = $status;
$this->resourceId = $resourceId;
Expand Down
2 changes: 1 addition & 1 deletion tests/Traits/ResolvesValuesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class FooData implements Arrayable

public function __construct(
Bar $bar,
string $name,
string $name
) {
$this->bar = $bar;
$this->name = $name;
Expand Down

0 comments on commit f80f4f1

Please sign in to comment.