From 3134636b5cb59e4139ebac26a65945d20a01889f Mon Sep 17 00:00:00 2001 From: Matt Floyd Date: Tue, 24 Sep 2024 15:54:50 -0400 Subject: [PATCH] Fix return types --- packages/core/src/Pipelines/Cart/ApplyDiscounts.php | 2 +- packages/core/src/Pipelines/Cart/ApplyShipping.php | 2 +- packages/core/src/Pipelines/Cart/Calculate.php | 2 +- packages/core/src/Pipelines/Cart/CalculateLines.php | 2 +- packages/core/src/Pipelines/Cart/CalculateTax.php | 2 +- .../core/src/Pipelines/Order/Creation/CleanUpOrderLines.php | 2 +- .../core/src/Pipelines/Order/Creation/CreateOrderAddresses.php | 2 +- packages/core/src/Pipelines/Order/Creation/CreateOrderLines.php | 2 +- .../core/src/Pipelines/Order/Creation/CreateShippingLine.php | 2 +- .../core/src/Pipelines/Order/Creation/FillOrderFromCart.php | 2 +- .../core/src/Pipelines/Order/Creation/MapDiscountBreakdown.php | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/packages/core/src/Pipelines/Cart/ApplyDiscounts.php b/packages/core/src/Pipelines/Cart/ApplyDiscounts.php index bf84f14e21..bd0570b132 100644 --- a/packages/core/src/Pipelines/Cart/ApplyDiscounts.php +++ b/packages/core/src/Pipelines/Cart/ApplyDiscounts.php @@ -11,7 +11,7 @@ final class ApplyDiscounts /** * Called just before cart totals are calculated. * - * @return void + * @return mixed */ public function handle(Cart $cart, Closure $next) { diff --git a/packages/core/src/Pipelines/Cart/ApplyShipping.php b/packages/core/src/Pipelines/Cart/ApplyShipping.php index da69179466..d516fc7adf 100644 --- a/packages/core/src/Pipelines/Cart/ApplyShipping.php +++ b/packages/core/src/Pipelines/Cart/ApplyShipping.php @@ -14,7 +14,7 @@ final class ApplyShipping /** * Called just before cart totals are calculated. * - * @return void + * @return mixed */ public function handle(Cart $cart, Closure $next) { diff --git a/packages/core/src/Pipelines/Cart/Calculate.php b/packages/core/src/Pipelines/Cart/Calculate.php index 353f519729..18c4520a31 100644 --- a/packages/core/src/Pipelines/Cart/Calculate.php +++ b/packages/core/src/Pipelines/Cart/Calculate.php @@ -11,7 +11,7 @@ class Calculate /** * Called just before cart totals are calculated. * - * @return void + * @return mixed */ public function handle(Cart $cart, Closure $next) { diff --git a/packages/core/src/Pipelines/Cart/CalculateLines.php b/packages/core/src/Pipelines/Cart/CalculateLines.php index 06599eb189..176b678cc9 100644 --- a/packages/core/src/Pipelines/Cart/CalculateLines.php +++ b/packages/core/src/Pipelines/Cart/CalculateLines.php @@ -12,7 +12,7 @@ class CalculateLines /** * Called just before cart totals are calculated. * - * @return void + * @return mixed */ public function handle(Cart $cart, Closure $next) { diff --git a/packages/core/src/Pipelines/Cart/CalculateTax.php b/packages/core/src/Pipelines/Cart/CalculateTax.php index 78890c7046..6927e071d2 100644 --- a/packages/core/src/Pipelines/Cart/CalculateTax.php +++ b/packages/core/src/Pipelines/Cart/CalculateTax.php @@ -15,7 +15,7 @@ class CalculateTax /** * Called just before cart totals are calculated. * - * @return void + * @return mixed */ public function handle(Cart $cart, Closure $next) { diff --git a/packages/core/src/Pipelines/Order/Creation/CleanUpOrderLines.php b/packages/core/src/Pipelines/Order/Creation/CleanUpOrderLines.php index 452697cfa4..0d6dcebbdb 100644 --- a/packages/core/src/Pipelines/Order/Creation/CleanUpOrderLines.php +++ b/packages/core/src/Pipelines/Order/Creation/CleanUpOrderLines.php @@ -8,7 +8,7 @@ class CleanUpOrderLines { /** - * @return Closure + * @return mixed */ public function handle(Order $order, Closure $next) { diff --git a/packages/core/src/Pipelines/Order/Creation/CreateOrderAddresses.php b/packages/core/src/Pipelines/Order/Creation/CreateOrderAddresses.php index b6b36ab243..c296933661 100644 --- a/packages/core/src/Pipelines/Order/Creation/CreateOrderAddresses.php +++ b/packages/core/src/Pipelines/Order/Creation/CreateOrderAddresses.php @@ -9,7 +9,7 @@ class CreateOrderAddresses { /** - * @return Closure + * @return mixed */ public function handle(Order $order, Closure $next) { diff --git a/packages/core/src/Pipelines/Order/Creation/CreateOrderLines.php b/packages/core/src/Pipelines/Order/Creation/CreateOrderLines.php index f1015e09c7..93400d5f62 100644 --- a/packages/core/src/Pipelines/Order/Creation/CreateOrderLines.php +++ b/packages/core/src/Pipelines/Order/Creation/CreateOrderLines.php @@ -9,7 +9,7 @@ class CreateOrderLines { /** - * @return Closure + * @return mixed */ public function handle(Order $order, Closure $next) { diff --git a/packages/core/src/Pipelines/Order/Creation/CreateShippingLine.php b/packages/core/src/Pipelines/Order/Creation/CreateShippingLine.php index a879de275d..234fdf3e86 100644 --- a/packages/core/src/Pipelines/Order/Creation/CreateShippingLine.php +++ b/packages/core/src/Pipelines/Order/Creation/CreateShippingLine.php @@ -10,7 +10,7 @@ class CreateShippingLine { /** - * @return Closure + * @return mixed */ public function handle(Order $order, Closure $next) { diff --git a/packages/core/src/Pipelines/Order/Creation/FillOrderFromCart.php b/packages/core/src/Pipelines/Order/Creation/FillOrderFromCart.php index e05dd673ab..4671eb15d7 100644 --- a/packages/core/src/Pipelines/Order/Creation/FillOrderFromCart.php +++ b/packages/core/src/Pipelines/Order/Creation/FillOrderFromCart.php @@ -10,7 +10,7 @@ class FillOrderFromCart { /** - * @return Closure + * @return mixed */ public function handle(Order $order, Closure $next) { diff --git a/packages/core/src/Pipelines/Order/Creation/MapDiscountBreakdown.php b/packages/core/src/Pipelines/Order/Creation/MapDiscountBreakdown.php index f4953c8fa2..fd92f7a6e5 100644 --- a/packages/core/src/Pipelines/Order/Creation/MapDiscountBreakdown.php +++ b/packages/core/src/Pipelines/Order/Creation/MapDiscountBreakdown.php @@ -8,7 +8,7 @@ class MapDiscountBreakdown { /** - * @return Closure + * @return mixed */ public function handle(Order $order, Closure $next) {