Skip to content

Commit

Permalink
Fix: php deprecated optionnal parameter is declared before required p…
Browse files Browse the repository at this point in the history
…arameter
  • Loading branch information
BeBlood committed Jan 7, 2025
1 parent 126daf6 commit 12630ac
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions Manager/PaymentManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@

class PaymentManager
{
/**
* @var EntityManagerInterface
*/
private $em;

/**
* @var PaymentGatewayRegistryInterface
*/
Expand All @@ -44,20 +39,25 @@ class PaymentManager
*/
private $paymentGatewayConfigurations;

/**
* @var EntityManagerInterface|null
*/
private $em;

public function __construct(
?EntityManagerInterface $em = null,
PaymentGatewayRegistryInterface $paymentGatewayRegistry,
TransactionManagerInterface $transactionManager,
EventDispatcherInterface $dispatcher,
LoggerInterface $logger,
array $paymentGatewayConfigurations
array $paymentGatewayConfigurations,
?EntityManagerInterface $em = null,
) {
$this->em = $em;
$this->paymentGatewayRegistry = $paymentGatewayRegistry;
$this->transactionManager = $transactionManager;
$this->dispatcher = $dispatcher;
$this->logger = $logger;
$this->paymentGatewayConfigurations = $paymentGatewayConfigurations;
$this->em = $em;
}

public function getAllPaymentGatewayConfigurationFromDoctrine(): array
Expand Down

0 comments on commit 12630ac

Please sign in to comment.