From 5d399c85defe8fe534bc83accdddae18b9db8bbd Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 25 Apr 2024 15:28:40 +0000 Subject: [PATCH] fix tests --- Controller/ApiBillController.php | 2 +- Controller/ApiTaxController.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Controller/ApiBillController.php b/Controller/ApiBillController.php index 75fc0c4..29b6816 100755 --- a/Controller/ApiBillController.php +++ b/Controller/ApiBillController.php @@ -916,7 +916,7 @@ final class ApiBillController extends Controller /** * Api method to create a bill element * - * @param RequestAbstract $request Request + * @param HttpRequest $request Request * @param ResponseAbstract $response Response * @param array $data Generic data * diff --git a/Controller/ApiTaxController.php b/Controller/ApiTaxController.php index 7a34976..a8ae470 100755 --- a/Controller/ApiTaxController.php +++ b/Controller/ApiTaxController.php @@ -106,9 +106,9 @@ final class ApiTaxController extends Controller $account->mainAddress->setCountry($defaultCountry); } - $taxCodeAttribute = $client !== null - ? $this->getClientTaxCode($account, $unit->mainAddress) - : $this->getSupplierTaxCode($account, $unit->mainAddress); + $taxCodeAttribute = $client !== null /* @phpstan-ignore-line */ + ? $this->getClientTaxCode($account, $unit->mainAddress) /* @phpstan-ignore-line */ + : $this->getSupplierTaxCode($account, $unit->mainAddress); /* @phpstan-ignore-line */ return TaxCombinationMapper::get() ->with('taxCode')