Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Oct 10, 2024
1 parent d3e6e2e commit 824ba3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Services/TaxCollectionService.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Bavix\Wallet\Interfaces\Wallet;
use Bavix\Wallet\Internal\Service\MathServiceInterface;

class TaxCollectionService implements TaxCollectionServiceInterface
final readonly class TaxCollectionService implements TaxCollectionServiceInterface
{
public function __construct(
private MathServiceInterface $mathService,
Expand All @@ -35,7 +35,7 @@ public function calculate(
$feeMaximum = $wallet->getMaximumTax($type);
}

$fee = '0';
$fee = 0;
if ($feePercent !== null) {
$fee = $this->mathService->floor(
$this->mathService->div(
Expand All @@ -55,6 +55,6 @@ public function calculate(
$fee = $feeMaximum;
}

return $fee;
return (string) $fee;
}
}

0 comments on commit 824ba3c

Please sign in to comment.