Skip to content

Commit

Permalink
change the amount type in Price.php class to fix division by 100 error
Browse files Browse the repository at this point in the history
  • Loading branch information
abdelhamiderrahmouni committed Nov 3, 2023
1 parent 989c34b commit eeb9c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/Price.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class Price
{
use HasPrice;

public int $amount;
public int|float $amount;

public string $formatted;

Expand Down

0 comments on commit eeb9c03

Please sign in to comment.