Преглед на файлове

PaymentUtils : correctif paramètre $comment

feature/souke
Guillaume Bourgeois преди 1 година
родител
ревизия
fc53503bfb
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      common/logic/Payment/Service/PaymentUtils.php

+ 2
- 2
common/logic/Payment/Service/PaymentUtils.php Целия файл

@@ -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,

Loading…
Отказ
Запис