From 5024b485546455ae1c4befb3058278fc9aa58d83 Mon Sep 17 00:00:00 2001 From: Patrick Date: Thu, 3 Feb 2022 00:35:38 +0100 Subject: [PATCH] Update CanBeBought.php --- src/CanBeBought.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CanBeBought.php b/src/CanBeBought.php index 093f927..a3abba6 100644 --- a/src/CanBeBought.php +++ b/src/CanBeBought.php @@ -38,7 +38,7 @@ trait CanBeBought public function getBuyablePrice(): Money { if (($price = $this->getAttribute('price'))) { - return $price; + return new Money($price); } }