webdna / commerce-bundles

Other
3 stars 4 forks source link

Error on save, after upgrade, "must be of the type float, string returned" #11

Closed bliswebagency closed 1 year ago

bliswebagency commented 3 years ago

Since upgrading to the latest commerce bundles we have been getting the following error while trying to save a bundle:

Return value of kuriousagency\commerce\bundles\elements\Bundle::getPrice() must be of the type float, string returned

For the purpose of saving the bundle we've made a temporary fix to line 460 of Bundle.php:

return floatvar($this->price);

Can you please advise if there is a proper way to address this issue, or if there will be an update available?

Versions:

Commerce Bundles: 1.2.1 Craft Commerce Pro: 3.2.14.1 Craft: 3.6.2 PHP: 7.4.14