diff --git a/Makefile b/Makefile
index 7922f1a93b8516419132511af8f9cee64a0ba983..fc6be2dc767260dd0dadb85b54abc5f0c3e733db 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
 BASE=shipping-by-rules
 PLATTFORM=woocommerce
 VENDOR=opentools
-VERSION=1.2.1
+VERSION=1.2.2
 DIR = $(shell pwd)
 SVNDIR=wordpress-plugin-svn
 
diff --git a/readme-adv.txt b/readme-adv.txt
index 97134fe04bcbab6a09f8128a9b905c7c91796b5f..9834db841231600bd2d9f68ab16b1ce4a28fe857 100644
--- a/readme-adv.txt
+++ b/readme-adv.txt
@@ -2,8 +2,8 @@
 Contributors: opentools
 Tags: WooCommerce, Shipment, Shipping
 Requires at least: 4.0
-Tested up to: 4.4.1
-Stable tag: 1.2.1
+Tested up to: 4.5
+Stable tag: 1.2.2
 License: GPLv3 or later
 License URI: http://www.gnu.org/licenses/gpl.html
 
diff --git a/readme.txt b/readme.txt
index f890c4149596dc8fd6bc0ab008fab0e60f2c17d7..4c33bd3c4158c4af12f6f47a26d408ce7e224e9e 100644
--- a/readme.txt
+++ b/readme.txt
@@ -3,7 +3,7 @@ Contributors: opentools
 Tags: WooCommerce, Shipment, Shipping, Rules shipping
 Requires at least: 4.0
 Tested up to: 4.5
-Stable tag: 1.2.1
+Stable tag: 1.2.2
 License: GPLv3 or later
 License URI: http://www.gnu.org/licenses/gpl.html
 
@@ -69,6 +69,10 @@ Please see our support forum at http://open-tools.net/forum/. It might also be a
 
 == Changelog ==
 
+= 1.2.2 =
+* Fix warning about function signature mismatch
+* Fix Coupons variable not being available (advanced version)
+
 = 1.2.1 =
 * Fix for warning when a rule contained only spaces
 
diff --git a/releases/opentools-woocommerce-advanced-shipping-by-rules_v1.2.2.zip b/releases/opentools-woocommerce-advanced-shipping-by-rules_v1.2.2.zip
new file mode 100644
index 0000000000000000000000000000000000000000..217ce11a5e291d0eec6a1a8fe9673a3c1f262063
Binary files /dev/null and b/releases/opentools-woocommerce-advanced-shipping-by-rules_v1.2.2.zip differ
diff --git a/releases/opentools-woocommerce-shipping-by-rules_v1.2.2.zip b/releases/opentools-woocommerce-shipping-by-rules_v1.2.2.zip
new file mode 100644
index 0000000000000000000000000000000000000000..453c2b56f6b78fe1568e39eb228072cd14fe693d
Binary files /dev/null and b/releases/opentools-woocommerce-shipping-by-rules_v1.2.2.zip differ
diff --git a/woocommerce-advanced-shipping-by-rules.php b/woocommerce-advanced-shipping-by-rules.php
index 114608749817bc1dd92c744c17186179a3d25d24..125fb2be7212cce55a1163ac9f082d1ea71d6086 100644
--- a/woocommerce-advanced-shipping-by-rules.php
+++ b/woocommerce-advanced-shipping-by-rules.php
@@ -3,14 +3,14 @@
  * Plugin Name: WooCommerce Advanced Shipping By Rules
  * Plugin URI: http://open-tools.net/woocommerce/advanced-shipping-by-rules-for-woocommerce.html
  * Description: Define Shipping cost by very general and flexible (text-based) rules. The advanced version also provides mathematical expressions and functions
- * Version: 1.2.1
+ * Version: 1.2.2
  * Author: Open Tools, Reinhold Kainhofer
  * Author URI: http://open-tools.net
  * Text Domain: woocommerce-advanced-shipping-by-rules
  * Domain Path: woocommerce-shipping-by-rules
  * License: GPL2+
  * WC requires at least: 2.2
- * WC tested up to: 2.5
+ * WC tested up to: 2.6
  
 
  * Copyright (C) 2015 Reinhold Kainhofer
@@ -75,7 +75,7 @@ class WooCommerce_Shipping_By_Rules_Advanced {
 	 * @since 1.0.0
 	 * @var string $version Plugin version number.
 	 */
-	public $version = '1.2.1';
+	public $version = '1.2.2';
 
 
 	/**
diff --git a/woocommerce-shipping-by-rules.php b/woocommerce-shipping-by-rules.php
index 2fc6da686d68cd732423817e60a4cc32466a200d..2eff9143f30f12772efd2bd2d189ee0e6580d2bd 100644
--- a/woocommerce-shipping-by-rules.php
+++ b/woocommerce-shipping-by-rules.php
@@ -3,14 +3,14 @@
  * Plugin Name: WooCommerce Shipping By Rules
  * Plugin URI: http://open-tools.net/woocommerce/advanced-shipping-by-rules-for-woocommerce.html
  * Description: Define Shipping cost by very general and flexible (text-based) rules.
- * Version: 1.2.1
+ * Version: 1.2.2
  * Author: Open Tools, Reinhold Kainhofer
  * Author URI: http://open-tools.net
  * Text Domain: woocommerce-shipping-by-rules
  * Domain Path: 
  * License: GPL2+
  * WC requires at least: 2.2
- * WC tested up to: 2.5
+ * WC tested up to: 2.6
  
 
  * Copyright (C) 2015 Reinhold Kainhofer
@@ -48,7 +48,7 @@ class WooCommerce_Shipping_By_Rules {
 	 * @since 1.0.0
 	 * @var string $version Plugin version number.
 	 */
-	public $version = '1.2.1';
+	public $version = '1.2.2';
 
 
 	/**