Parcourir la source

PaymentUtils : correctif paramètre $comment

feature/souke
Guillaume Bourgeois il y a 1 an
Parent
révision
fc53503bfb
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      common/logic/Payment/Service/PaymentUtils.php

+ 2
- 2
common/logic/Payment/Service/PaymentUtils.php Voir le fichier

@@ -28,7 +28,7 @@ class PaymentUtils extends AbstractService implements UtilsInterface
$this->producerSolver = $this->loadService(ProducerSolver::class);
}

public function creditUser(User $user, float $amount, string $meanPayment, User $userAction, string $comment): void
public function creditUser(User $user, float $amount, string $meanPayment, User $userAction, string $comment = null): void
{
$this->paymentBuilder->createPayment(
Payment::TYPE_CREDIT,
@@ -41,7 +41,7 @@ class PaymentUtils extends AbstractService implements UtilsInterface
);
}

public function debitUser(User $user, float $amount, string $meanPayment, User $userAction, string $comment): void
public function debitUser(User $user, float $amount, string $meanPayment, User $userAction, string $comment = null): void
{
$this->paymentBuilder->createPayment(
Payment::TYPE_DEBIT,

Chargement…
Annuler
Enregistrer