瀏覽代碼

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…
取消
儲存