Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Nov 11, 2024
1 parent 9f1b4f0 commit 0bd8c3d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 57 deletions.
53 changes: 0 additions & 53 deletions .github/workflows/ci.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@
"symfony/web-profiler-bundle": "^6.4|^7.1",
"spaze/phpstan-stripe": "^3.2",
"nyholm/psr7": "^1.8",
"mockery/mockery": "^1.6"
"mockery/mockery": "^1.6",
"phpstan/phpstan-mockery": "^1.1"
},
"suggest": {
"sylius/shop-bundle": "Use the Sylius default front shop",
Expand Down
3 changes: 2 additions & 1 deletion src/Manager/Checkout/ExpireManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ final class ExpireManager implements ExpireManagerInterface
use StripeClientAwareManagerTrait;

public function __construct(
private ClientFactoryInterface $stripeClientFactory,
ClientFactoryInterface $stripeClientFactory,
private ?ParamsProviderInterface $paramsProvider = null,
private ?OptsProviderInterface $optsProvider = null,
) {
$this->stripeClientFactory = $stripeClientFactory;
}

public function expire(PaymentRequestInterface $paymentRequest, string $id): Session
Expand Down
3 changes: 2 additions & 1 deletion src/Manager/WebElements/CancelManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ final class CancelManager implements CancelManagerInterface
use StripeClientAwareManagerTrait;

public function __construct(
private ClientFactoryInterface $stripeClientFactory,
ClientFactoryInterface $stripeClientFactory,
private ?ParamsProviderInterface $paramsProvider = null,
private ?OptsProviderInterface $optsProvider = null,
) {
$this->stripeClientFactory = $stripeClientFactory;
}

public function cancel(PaymentRequestInterface $paymentRequest, string $id): PaymentIntent
Expand Down
3 changes: 2 additions & 1 deletion src/Manager/WebElements/CaptureManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ final class CaptureManager implements CaptureManagerInterface
use StripeClientAwareManagerTrait;

public function __construct(
private ClientFactoryInterface $stripeClientFactory,
ClientFactoryInterface $stripeClientFactory,
private ?ParamsProviderInterface $paramsProvider = null,
private ?OptsProviderInterface $optsProvider = null,
) {
$this->stripeClientFactory = $stripeClientFactory;
}

public function capture(PaymentRequestInterface $paymentRequest, string $id): PaymentIntent
Expand Down

0 comments on commit 0bd8c3d

Please sign in to comment.