mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-22 23:25:23 +00:00
Fix tests
This commit is contained in:
@@ -525,13 +525,8 @@ class Cart
|
||||
|
||||
/**
|
||||
* Set the discount rate for the cart item with the given rowId.
|
||||
*
|
||||
* @param string $rowId
|
||||
* @param int|float $taxRate
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function setDiscount(string $rowId, $discount): void
|
||||
public function setDiscount(string $rowId, float|Money $discount): void
|
||||
{
|
||||
$cartItem = $this->get($rowId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user