File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Release Notes for Craft Commerce
22
3+ ## Unreleased
4+
5+ - Fixed a PHP error that could occur when registering a custom shipping method.
6+
37## 4.8.2 - 2025-03-12
48
59- Fixed a bug where line items’ sale prices could be calculated incorrectly. ([ #3928 ] ( https://github.com/craftcms/commerce/issues/3928 ) )
Original file line number Diff line number Diff line change @@ -1995,7 +1995,7 @@ public function getAvailableShippingMethodOptions(): array
19951995 {
19961996 // Matching will contain the core shipping methods and any plugin dynamically returned shipping methods.
19971997 $ methods = Plugin::getInstance ()->getShippingMethods ()->getMatchingShippingMethods ($ this );
1998- $ matchingMethodHandles = ArrayHelper::getColumn ($ methods , ' handle ' );
1998+ $ matchingMethodHandles = ArrayHelper::getColumn ($ methods , fn ( ShippingMethodInterface $ sm ) => $ sm -> getHandle () );
19991999
20002000 // Get all regular methods and add them to the list, for use only when the order is complete.
20012001 if ($ this ->isCompleted ) {
You can’t perform that action at this time.
0 commit comments