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