Update CanBeBought.php

This commit is contained in:
Patrick
2022-02-03 00:35:38 +01:00
committed by GitHub
parent 036b6a8fbe
commit 5024b48554

View File

@@ -38,7 +38,7 @@ trait CanBeBought
public function getBuyablePrice(): Money
{
if (($price = $this->getAttribute('price'))) {
return $price;
return new Money($price);
}
}