From 427fe80fb4692da46bbeea405f1f5906f4d55b24 Mon Sep 17 00:00:00 2001 From: Reinhold Kainhofer <reinhold@kainhofer.com> Date: Thu, 30 Jun 2016 00:10:45 +0200 Subject: [PATCH] Fix function signature -> warning about signature mismatch solved --- includes/rules-shipping-method.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/rules-shipping-method.php b/includes/rules-shipping-method.php index 120ab72..f44293c 100644 --- a/includes/rules-shipping-method.php +++ b/includes/rules-shipping-method.php @@ -142,7 +142,7 @@ class Shipping_by_Rules extends WC_Shipping_Method { * @param mixed $package * @return void */ - public function calculate_shipping( $package ) { + public function calculate_shipping( $package = array()) { $methods = $this->helper->get_rule_shipping_methods(); foreach ($methods as $method) { -- GitLab