mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-19 05:45:20 +00:00
Update CanBeBought.php
This commit is contained in:
@@ -45,7 +45,7 @@ trait CanBeBought
|
||||
/**
|
||||
* Get the weight of the Buyable item.
|
||||
*/
|
||||
public function getBuyableWeight(): float
|
||||
public function getBuyableWeight(): int
|
||||
{
|
||||
if (($weight = $this->getAttribute('weight'))) {
|
||||
return $weight;
|
||||
|
||||
Reference in New Issue
Block a user